developing the player class