rough logic of the game's mechanics- not yet completed