Ok so I was about to beat a AI5, but I looked at my hp and saw that I was going to lose on the next turn. So, I quit. As I was clicking the quit button, I realized that I was about to win on the same turn. Also, I have clicked out of the browser after I have won cards before the game saves.