AI for recursive tic tac toe