This both simplifies the code, and ensures that the target node is roughly in the center of the range rather than at an end.
This commit adds the necessary tables and columns, as well as an implementation of an online topological sorting algorithm to maintain an absolute ordering of the room chunks.