Teacher Forcing Algorithm