At this point it will probably help if I just post the capx file so people can look at my code and see if they can determine the issue.
The function where I am having the issue is the "CreateStartingBlocks" function. In this function I am creating a grid of Blocks and after I create each Block I assign it a BlockID. I then attempt to call the "RemoveSpawnedMatches" function with the number I assigned as the BlockID as the parameter for the function.
This function is supposed to take in a BlockID, check if there is currently a Block with that BlockID, and if there is it is supposed to ensure that the Block is not neighboring any Block which is the same color as it is.
I know that RemoveSpawnedMatches works because earlier I tried making a separate Event which goes through each Block one by one and sends them into the RemoveSpawnedMatches function and it worked perfectly. Right now I am trying to determine why it won't work in this specific scenario. Any help would be greatly appreciated.Here is the download linkDaveSilver2013-07-03 14:37:11