made it so the game pauses when not in focus.