Something faulty with the timer in this match:
http://replay.pokemonshowdown.com/gen7randombattle-592116633
I explain it post battle, but he left (most likely because he lost) and I put the timer on. Waited for the timer to run out for me to win, but some for reason he ended up winning. You...