We have a winner in the Pokemon Wars, so you'll have to generate 20 new random Pokemon for the next round.
Also, in the OP, you stated that a certain rule doesn't apply when there are less then Pokemon remaining. This is very confusing, so you should state an exact number of Pokemon.