further implementation of player class