base for player class