Good point.
I'll have it like this : the person with the best capabilities (defense + attack + special defense (number 2, if applied) + special attack (like number 1 and 5) ) wins. If there is no difference, it's a tie. Since number 9's capabilities are higher than number 7's, number 9 wins the game. That is why you should all try to get rid of number 9, if possible.
--------> Don't follow "Find Roy's Dignity",
my hack. Because it's pretty outdated.
<--------