End the game if the max time is reached