The young David II returned from exile in France and made it his principal royal residence , building a tower house ( David 's Tower ) on the site of what is now the Half Moon Battery .
David the Second was a powerful king in Europe .