negamac algorithm with tic-tac-toe