Simulation step out of bounds fix
This merge request addresses a critical issue related to the simulation step out-of-bounds error. Furthermore, it fixes the bug that surfaces when the simulator was executed multiple times consecutively.
This merge request addresses a critical issue related to the simulation step out-of-bounds error. Furthermore, it fixes the bug that surfaces when the simulator was executed multiple times consecutively.