Made the simulator more flexible by using a HashMap instead of an array for the step counters