Added forced gen termination if between states
Added forced gen termination if between states

It should help resolve issues where the user spams courses that have
very high time complexity.

Step7750/ScheduleStorm,Step7750/ScheduleStorm