Tetris like game puzzle

You could multitrace from top to bottom, straight through the entire column to see if a matching, previously established sequence is found. Since we already know the solution, this should be trivial to set up. The solution to the first column is R,B,B,Y, Empty. Again, pretty agnostic of whatever method is used to make it. You could even use component tags.