fix some logic problems in existing pig code (ship = pigship comparisons changed to shipObjID = pigshipObjID) compare ID's instead of objects