States and Modes

Give Spark modes with a state machine: draw states and arrows, find out why a robot needs memory, hunt bugs only state machines have, then program a night patrol that waits for the caretaker, waits for people and turns only at walls.