created a validateCargoSpace method to ensure we have enough space on the cargo before things are added to cargo