pause the game when the window gets blurred