Sleep 1 second if the game is in the background.