Detect nearby identical objects
<p>So I write a game once in while. Just for fun, so that I can learn new things.
I have been able to make a working "Breakout" and "SpaceInvaders" game so far. So I know how to handle collision handling etc.</p>

<p>Now I would like to make a "Bubble Shooter" copy.
<img src="http://img13.imageshack.us/img13/8361/54611.gif" alt="alt text"></p>

<p>I hope you guys know the game.</p>

<p>I am having an issue about one aspect of the game.
As you know, if colored ball hits a place where 2 or more same-colored balls are connected - they will all "pop/dissapear".</p>

<p>Now, how do I detect if there is any same-colored balls connected to the ball I collide with?
Do I keep some sort of seperate list of all clashes of same-collored balls?</p>

<p>I will need to know some sort of hint to which object the different balls are, so that I can delete them all upon impact.</p>

<p>So yeah, how should I go about this?</p>
