Match three or more Objects

I am trying to create a game matching three or more object together like Bejeweled. I want to code a way there three or more objects will be destroyed. Is there a way for me to do that? Like a for loop or anything?

I know there is a complete code tutorial on youtube for a match three puzzle.
I don’t have the link as I didn’t look for it myself but someone told me about it.

So if by any luck you find it, you can post it here :slight_smile: in reward for me to pointed you in the right direction!

Good luck.