if the window is moved, the game pauses