pause the game when the user loses focus