sentence: architecture the castle was built as a square with sides of 30 metre length inside which was a tall main tower , the principal living accommodation , and angle towers , arranged around an inner courtyard .