I was playing a Random Battle, when the game glitched.
The opponent's name was showing as Player, I couldn't see my Pokemon, and the terrain was light gray. I clicked on Claim Victory, and waited 150 seconds, when it has shown that the opponent won and I lost.
I was still able to chat normally...