woolsey castle was built , in principle , upon much the same lines as that bug : improbably constructed , exceedingly ugly , and impossible to determine how it continued to stay upright or , indeed , why it bothered to do so .