However , after the Å nin War , the Amago clan in Gassan-Toda castle increased in power , and the Masuda clan controlled Iwami . However , after the Å nin War , the Amago clan expanded power based in Gassantoda Castle and Masuda clan dominated Iwami province .