Teacher Forcing Algorithm Steps For Stack