player class implemented