game pauses when losing focus