fixed pausing the game