Ah I just ran a test and I can see what's happening. It's only comparing against previous IU tiles and not always picking the new one. Put your x,y checks within a For each IU tile event, that way you know it's checking adjacent tiles on every IU tile.