Link nodes in maze