Made the game state-based. Yay!