Fixed box drawing, added proper line connection

Made "Make a Box" button work.  Created way to connect boxes by double
clicking on one, then another.
Minor cleanup

Cleaned up line-drawing code.