Added code and tests for Player