make the generalized tic tac toe more robust