I have a variable counter setup so every time a frame is clicked I add to the counter. At the third click (if the first 2 clicks don't produce a match) I go to the Third click layer which is really a reset all frames to their normal state. The counter is reset and the whole process starts over.
I also have a variable created for each frame. Row 1 = A1 to A4 Row 2 = B1 to B4 etc..
A T/F trigger is setup up so that when you pick a frame it goes T. I also check at that time to see if you have picked the matching frame. For example, A1 and A3 must be selected (True) to go that layer which gives you the checkmark state.
Hope that makes sense.