A small robot has to pick up the red block. Its camera sees four blocks on the floor. Between the image and the grip there are four steps: find the block, say where it is, choose the nearest one, decide what to do.
Each step has a bug. You will repair them one at a time and then run the whole chain.