Search for match-3 games.
One method: Use sprites (helper) and create it around an object you want to check if other similar objects are around.
Check collision and set a variable to i.e. "matched = 1". And at the current tick delete the helper-sprite and create new at the checked objects around. etc. (loop).
Here are some variable for the objects:
- typ // for matching
- checked // set if the object is already checked. (otherwise endless looping).
- matched // set if the object is matching to the origin object