simplifying the player class