Minimax strategy working