added the player class
added the unit test for playerclass