Basic game logic

Adds the foundation of game logic and functionality.