the palace had many construction phases