Update simulator.java

Need to add branching and memory accessing to complete the project