updates the underlying code of tic tac toe