What role did the king’s palace play in a city-state?