modified the player.cc and BasePackage.cc and their test file