The program works great, but there are a few kinks.
https://www.dropbox.com/s/vpso173zbga4k ... .capx?dl=0
There is an action that changes the sprite's frame to the instance variable, and when it is run I get this.
The problems are circled here:
The problem seems very random... Maybe construct 2 is conscious.
(You may need to zoom to 50%-33% to view the whole image. Also, the program runs very slowly. Is it the amount of objects on screen? No, I attempted to make the grid smaller (3 by 3) and it still has lag.)