working on the player class