Corrected and further implemented MinimaxTree.