minimax algorithm for 2 player dots and boxes