Changed pause on blur to take effect only when the game is running