migzoo gets the win because Tricking brought an ORAS Pokemon (Mega Glalie) into an XY game. The game would have been legal if Tricking did not mega evolve, but because he did, his team is illegal. Therefore, migzoo wins and the Arcanines win 5-2, guaranteeing them a spot in the finals.