some improvements in player class