added player class and methods