updated print statements when finding paths.