There's a thing I discovered yesterday, and you might find it helpful (if you don't know this already). The AI moves its units in the same sequence as the sequence defined in alienDeployments (top-to-bottom), not by a fixed rank order. I used this to make the AI move tough units first to tank player's reactions etc.