neighbor looks complete but doesn't work.

Currently neighbor fails with a loop exception, but most "undefined"
have been eliminated so the general idea is expressed.

connectRemainingThreeNodes still is undefined.