Added debugging tools/fixed Minimax for good