extracted the computer ai out of tictac