public void bjTie()
    {
	int selected = bjGameOverPane.showConfirmDialog(null, "It was a tie! Play again?", "Game over!", JOptionPane.OK_OPTION);
	if(selected == JOptionPane.OK_OPTION)
	{
		ArrayList temp, temp1;

		temp = blackJackOb.getPlayerCards();
		temp1 = blackJackOb.getDealerCards();
		for(int i = 0; i < temp.size(); i++)
		{
		    leaderTextArea.append(((Card)(temp.get(i))).getValue() + "of ");
		    leaderTextArea.append(((Card)(temp.get(i))).getSuit() + " ");
		}
		for(int j = 0; j < temp1.size(); j++)
		{
		    leaderTextArea.append(((Card)(temp1.get(j))).getValue() + "of ");
                    leaderTextArea.append(((Card)(temp1.get(j))).getSuit() + " ");
		}
		blackJackOb.refresh();
		refreshBJ();
		cardLayout.show(master, blackJack);
		blackJackOb.playBlackJack(gui);	
	    }
	    if(selected == JOptionPane.NO_OPTION)
	    {
		ArrayList temp, temp1;

                temp = blackJackOb.getPlayerCards();
                temp1 = blackJackOb.getDealerCards();
                for(int i = 0; i < temp.size(); i++)
		{
                    leaderTextArea.append(((Card)(temp.get(i))).getValue() + "of ");
                    leaderTextArea.append(((Card)(temp.get(i))).getSuit() + " ");
		}
		for(int j = 0; j < temp.size(); j++)
		{
		    leaderTextArea.append(((Card)(temp.get(j))).getValue() + "of ");
                    leaderTextArea.append(((Card)(temp.get(j))).getSuit() + " ");
		}

		int selected2 = bjGameOverPane.showConfirmDialog(null, "Do you want to see your match history?", "Game over!", JOptionPane.OK_OPTION);
		if(selected2 == JOptionPane.OK_OPTION)
		{   
		    cardLayout.show(master, leaderBoard);
		}
		else if(selected2 == JOptionPane.NO_OPTION)
		{
		    cardLayout.show(master, mainMenu);
		}

		blackJackOb.refresh();
		refreshBJ();
	    }
    }