Finally got tile connection to work!
The debug text will now tell you which connections each tile has, and they seem to be right, so that's
a big step forward.