updating player class