djikstra's working, visualization is fully functional