when the precursor to the modern state had been busy conquering the world under the legendary emperor agukkan , the last kingdom to avoid his armies had been ankina , nestled in its mountainous stronghold for almost twenty years .