Update simulator.java