Pipe Dream / Toobz

Hi!

I’m “trying” to recreate an old game called pipe dreams, I’ve also seen this game for the ipod touch/ iphone(called toobz).

I have most of the game figured out and have also created a basic layout which will be beautified after the functionality is working.

Here’s what I’ve accomplished:

[LIST=1]
[]adding a the pipe
[
]changing the pipe
[]showing the next available pipe
[
]game timer
[/LIST]
now I need to see if the pipes are connected correctly to each other, I’m thinking of having a “for loop” go through the array where the pipes are stored and see if it is connected properly. That’s when my logic failed me.

What’s the best way of checking the “connectivity” of the pipes?

If you’d like to see the swf, the link is below
http://janpatricklara.com/pipeDream/pipeDream1.swf

and the fla is at
http://janpatricklara.com/pipeDream/pipeDream1.fla

Please help.
Thank you in advance!