the castle was built originally