a castle can be used for living in