Created a player implementation, along with test cases.