You'll also want to check your "if Atom>Peg" thing, because Peg isn't a number 1-4, it's a binary number.. and there's a handful of other quirks in there, too. Quick test, blue atom left, blue atom right, red atom inbetween = red atom only connects to the left, not the right.. This post is from -- http://socoder.net/index.php?topic=2120