a castle is for shelter during a battle