setting up the player class