Added an MVC side to game logic.