base structure and some of the first parts of game logic