Add option to stop simulation after all resource objects collected

* Add getter for number of iterations the simulation has run for