trying to make a player class but not really getting it