Good job
Since you asked on possible ways to clean up the events, it's only a matter of preference but I prefer to use loops based on subevents like this:
+ For "i" from 1 to count
----+ Condition A
--------: Actions A
----+ Condition B
--------: Actions B ...
As opposed to the 'on loop' system you have already:
(start loop "i" count times)
+ On loop "i"
+ Conditions A
----: Actions A
+ On loop "i"
+ Conditions B
----: Actions B
I prefer the original system with subevents since it avoids the repetition of 'On loop', and I think it's easier to read. Also, the system condition loops (like 'for') perform much better than 'On loop', but it's a minor point when less than 10,000 iterations are run