A robot is not a program that runs once. Picture driving to a goal: point it, push go — and it overshoots, because a single command can't know when to stop. So it does something else: it SENSES (how far to the goal?), DECIDES (close enough yet?), and ACTS (drive, or stop) — then does the whole thing again, many times a second. That loop is the robot.
The one thing that trips everyone up: if you check 'am I there yet?' only once, the rover never re-asks and overshoots forever. The deciding has to live inside the loop, asked every single tick.
Sense → think → act, closed around the world.