created the player class