finished logic and made a game-class