added player class which was missing