Modified how to get resources remaining and added the skeleton for trading at ports