got a better visualization algorithm but some nodes are being missed right now and not sure why