Very cool game theory at play here, I wonder if you could even write a solver for individual battles so you could analyze your mistakes after playing!