Looking for an algorithm for detecting adjacent objects of the same color similar to Bubble Breaker. Any tips?