Add tic tac toe minimax implementation