Explanation: A possible solution to the complete code can be seen below. The transporter will drive to the blue area, and deliver it cargo there, if there is an object in its path, it will automatically pause its operation in order not to collide with it.