write TTT AI
little cleanups to TTT