Tic tac toe engine