I suggest you drop the Array FOR events, and stick to the system FOR loop. You are mixing one and two dimension events, which is confusing things.
http://www.blackhornettechnologies.com/ ... BHT_b.capx
Event 8/9 doesn't work because you change the colour to black and then try to find the matching colour, which you just set to black, so it doesn't exist. For 11/12, you are trying to set to CurY but there is no CurY as you are only looping in X.