added game logic to code base