added inheritance for game and player class