Yep he probably switched position of his players right after the match started and played a legal formation.
The weirdest thing is that although he managed to win against such a better team, most of his players received very low ratings.