I found this awesome tutorial for how to write a match-3 game for iOS written in ObjC. I’m sure it could be ported over to Lua (or some other language). No one has really shared a Match3 game here, so this will take some work, but it’ll be really helpful to someone who always wanted to know how to write one, complete with basic logic.