Sorting and pathfinding, one step at a time.
Draw on the grid. Drag the start and target to move them.