Finished the candidates path generation section.