I have since solved this problem and even released a KiX2k version of TicTacToe (I can't find it, but it's on this board somewhere)
cj
Generated in 0.042 seconds in which 0.014 seconds were spent on a total of 13 queries. Zlib compression enabled.