Update visualizer.cpp