modify Simulator to reflect changes from testSort