What year did the king decide to make it into a palace?