add player class
add tests for player class