Added a reset function and the shortestPath now recalculates for different start nodes