finished first version of player class