fleshed out some more of the game logic