Creating player class