It was built in the thirteenth century and expanded over the years .
The castle was built in the thirteenth century .