Added BoxPositions for all boxes in the canvas. Minor refactoring