Allowed pausing the game. The game now pauses when focus is lost.