Added Square.distToBoundary.