A tic tac toe implementation with AI