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.031 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.