Awesome! That was certainly the hardest part of the game, IMO. The first time I beat him due to a glitch; he had 5 in a row, but the game didn't recognize it as a "win."
Naturally, I felt like I cheated, so I loaded my previous save and went through another agonizing half hour of tic-tac-toe.