Updated Simulator.java and added QAgent.java