Tic tac toe backend