fixed compilation error in player class