pause game when window focus lost