help with jewel quest type game

I’m new to game programming and corona. I can’t seem to figure out the logic for a game such as jewel quest where 3 or more alike items are removed and the rows fall to refill empty spaces. Should there be an array for each column and row or what? Not looking for someone to figure complete game just need a nudge in the right direction. [import]uid: 114782 topic_id: 25381 reply_id: 325381[/import]