Pause the game on losing focus or changing tab