Added game logic
added game logic