almost all of the game logic! Its still flawed, but almost there