pause and resume game on windows blur and focus events