Prims works!

with the visualizer too!