simultaneously the castle turned into the core of the kingdom's government