a castle is used for protected dwelling