Improved box drawing so it can accomodate movement between adjacent boxes.