How do you deffend a motte and bailey castle?

battering ram