Need some guidance

Hi, i’m intending to make a ‘tetris/bejeweled’ kind of game but instead of it recognizing a row of 3 vert/horizontal gems, is it possible to recognize a certain pattern like say a ‘+’ shape and other shapes?

Say instead of recognizing: (% are misc color blocks, @ is a same color block)
%%% %%@ %@%
@@@ %@% %@%
%%% @%% %@%

i want it to recognize and earn points on these shapes
%@% @@@
@@@ @@@
%@% %@%

i’d studied on some existing brick game sample scripts, but i just can’t figure things out.
Pls show me some guidance~