improvement in function imprimirCamino

improvement on function to choose the neighbor to travel