added player class and attributes