24 hours gone...

...and not a whole lot to show for it. I managed to get as far as generating a grid with no matches, and then detecting matches when you swap two files, but now I'm having trouble clearing the files from the grid and getting the remaining files to cascade downwards, and I can't for the life of me figure out what I'm doing wrong with either of those things. The files are cascading downwards, but they're also randomly erasing a few and then crashing the game for some reason:

video298.gif

So yeah, it's been 24 hours of banging my head against my desk, and I can already foresee it being 48 more hours of banging my head against my desk. I tell you what, when I'm finished with this, I never want to see another fucking two-dimensional Lua array ever again.