created a player class