You posted this with the Checkmating Applet, where it doesn't belong. Please copy-paste it to a new posting in a place where it does belong, and then delete this one.
BTW, why do you always replace a single army in the existing CwDA Diagram? You obviously know what you have to change to make that work, and instead of changing it, you could just add it. And add one or more rows of buttons to select the new armies. Then the Diagram could also play the new armies against each other.
You posted this with the Checkmating Applet, where it doesn't belong. Please copy-paste it to a new posting in a place where it does belong, and then delete this one.
BTW, why do you always replace a single army in the existing CwDA Diagram? You obviously know what you have to change to make that work, and instead of changing it, you could just add it. And add one or more rows of buttons to select the new armies. Then the Diagram could also play the new armies against each other.