Further buildup of the game's logic.