Switched the game to an event-driven model.

Minor cosmetic fixes.