Guide the agent from green to red, passing through yellow numbers in sequence (1→2→3→...). Move only up, down, left, or right. Optimize the path length between each pair of consecutive waypoints. Only modify what the task requires; keep the background and any other element unchanged. Output one image each time the agent reaches the next numbered cell, plus a final image when the agent arrives at the red end cell, each with the path segment from the previous position drawn as a cyan line.