Creating Minimax Tree