updated player class