brought a new structure into the player class