First commit. Basic game logic.