Do you have to return home as well at the end, or are you just looking for shortest pathfinding?