Minimax implementation complete