Find the shortest path from the Source to the Goal. Your distance must match the bot's optimal distance to win.
You found the optimal path.