game code updates

continuing game logic implementation.