added player attr to diff object; finished unit tests