Changed a bit code in player class and implemented tests for player