AI to play Network with minimax algorithm