basic minimax tree structure and construction. UNTESTED