Redid the map's path creation for each vertex. Also implemented the retrievePath function