added visualizer to the simulator