Pause the animation when the game is over