Update simulation.java