Added support for pause/resume game.