added game logic and constructor for Game