Lines can now attach to top or bottom of box.
Known bug: Lines can begin and end on the same box.