private void getOutcome(int a, int d) {
		attackers = a;
		defenders = d;
		outcome = new double[attackers + 1][defenders + 1];
		for (int i = 0; i < attackers + 1; i++)
			for (int j = 0; j < defenders + 1; j++)
				outcome[i][j] = -1.0;
		outcome[attackers][defenders] = 1.0;
		
		double winOdds = 0.0;
		String likelyOutcomeState = "";
		double likelyOutcome = -1.0;
		
		String[][] data1 = new String[attackers - 1][3];
		String[][] data2 = new String[defenders][3];
		int k = 0;
		
		for (int i = attackers; i >= 2; i--) {
			winOdds += getOdds(i, 0);
			data1[k] = new String[] {"" + i, "0", format.format(outcome[i][0])};
			k++;
			if (outcome[i][0] > likelyOutcome) {
				likelyOutcome = outcome[i][0];
				likelyOutcomeState = i + " vs " + 0;
			}
		}
		k = 0;
		for (int i = 1; i <= defenders; i++) {
			data2[k] = new String[] {"1", "" + i, format.format(outcome[1][i])};
			k++;
			if (outcome[1][i] > likelyOutcome) {
				likelyOutcome = outcome[1][i];
				likelyOutcomeState = 1 + " vs " + i;
			}
		}
		
		outcomePnl.removeAll();
		outcomePnl.setPreferredSize(new Dimension(550, 500));
		outcomePnl.setLayout(new BoxLayout(outcomePnl, BoxLayout.Y_AXIS));
		
		Font font = new Font("Arial", Font.BOLD, 14);
		
		JPanel pnl1 = new JPanel();
		pnl1.setLayout(new BoxLayout(pnl1, BoxLayout.Y_AXIS));
		JLabel victoryOddsLbl = new JLabel("Victory odds: " + format.format(winOdds));
		victoryOddsLbl.setFont(font);
		JLabel likelyOutcomeLbl = new JLabel("Most likely outcome: " + likelyOutcomeState + " (" + format.format(likelyOutcome) + ")");
		likelyOutcomeLbl.setFont(font);
		pnl1.add(Box.createVerticalStrut(10));
		pnl1.add(victoryOddsLbl);
		pnl1.add(Box.createVerticalStrut(10));
		pnl1.add(likelyOutcomeLbl);
		pnl1.add(Box.createVerticalStrut(10));
		
		JPanel pnl2 = new JPanel();
		pnl2.setLayout(new BoxLayout(pnl2, BoxLayout.Y_AXIS));
		String[] columns = {"Attackers Remaining", "Defenders Remaining", "Probability"};
		JTable outcomeTbl1 = new JTable(data1, columns);
		outcomeTbl1.setEnabled(false);
		JTable outcomeTbl2 = new JTable(data2, columns);
		outcomeTbl2.setEnabled(false);
		pnl2.add(outcomeTbl1.getTableHeader());
		pnl2.add(outcomeTbl1);
		pnl2.add(outcomeTbl2.getTableHeader());
		pnl2.add(outcomeTbl2);
		JScrollPane scrollPane = new JScrollPane(pnl2);
		
		outcomePnl.add(pnl1);
		outcomePnl.add(scrollPane);
		
		outcomePnl.revalidate();
	}