Hi, Small bug, but I guess in nearCallback this line: if (b2 && b2 && dAreConnected (b1,b2)) return; ^^ should be: if (b1 && b2 && dAreConnected (b1,b2)) return; ^^ :) This is in CVS. Ertan Deniz, METU Computer Engineering