Fixed player class constructor