Pause game if window focus is lost