Fixed my optimization and tested it; it now works. Also found a bug related to the Start/Resume button only doing one step at a time; if you push it too rapidly, the simulation goes "wrong" and skips some behaviors or something; basically, the simulation behaves differently if you push it several times in a row. We need to prevent that from being possible. We also need to fix the part where it only goes one step at a time.
Fixed my optimization and tested it; it now works.
Also found a bug related to the Start/Resume button only doing one step at a time; if you push it too rapidly, the simulation goes "wrong" and skips some behaviors or something; basically, the simulation behaves differently if you push it several times in a row. We need to prevent that from being possible. We also need to fix the part where it only goes one step at a time.

tsmacdonald/simulator,tsmacdonald/simulator