Found the shortest path! Prints in reverse order