modified CargoBay's addTradeGood method

I've intentionally made it more complicated so I can do an extra test on
it