public void actionPerformed(ActionEvent ae) {
		if ("Hit".equals(ae.getActionCommand())) {
			

			if (playerSum < 21) {
				
				player.playersHand.addACard(table.deal());
				repaint();
				
				playerSum = player.playersHand.getTotalValue();
				

			}

			if (playerSum > 21) {
				setWallet(getWallet());
				score.setText("You busted. YOU LOSE!");
				bet10.setEnabled(false);
				doneBet.setEnabled(false);
				doubleDown.setEnabled(false);
				newGame.setEnabled(true);
				stay.setEnabled(false);
				hit.setEnabled(false);
				stay();

			}
		}
		if ("Stay".equals(ae.getActionCommand())) {
			stay();
		}
		if ("New Game".equals(ae.getActionCommand())) {
			

			playerSum = 0;
			dealerSum = 0;
			repaint();
			totalBet = 0;
			front = true;
			setWallet(getWallet());
			score.setText("               Bet Again");
			walletLabel.setText("You currently have: $" + getWallet());
			setPot(0);
			potLabel.setText("There is $" + getPot() + " in the pot.");
			
			doubleDown.setEnabled(false);
			newGame.setEnabled(false);
			stay.setEnabled(false);
			hit.setEnabled(false);
			bet10.setEnabled(true);
			doneBet.setEnabled(true);
			
		}
		if ("Double Down".equals(ae.getActionCommand())) {
			player.playersHand.addACard(table.deal());
			playerSum = player.playersHand.getTotalValue();
			setWallet(getWallet() - totalBet);
			setPot(getPot() + (totalBet*2));
			walletLabel.setText("You currently have: $" + getWallet());
			potLabel.setText("There is $" + getPot() + " in the pot.");
			// if (playerSum > 21) {
			// 	setWallet(getWallet());
			// 	score.setText("You busted. YOU LOSE!");
			// 	front = true;
			// 	repaint();
			// }
			// if (playerSum < 22) {
			// 	repaint();
			// }
			stay();
		}
		if ("Bet $10".equals(ae.getActionCommand())) {
			setWallet(getWallet()-10);
			totalBet += 10;
			walletLabel.setText("You currently have: $" + getWallet());
			setPot(getPot() + 20);
			potLabel.setText("There is $" + getPot() + " in the pot.");
			dealersMoney -= 10;
			
		}
		if ("Done Betting".equals(ae.getActionCommand())) {
			front = false;
			first4Cards();
			repaint();
			score.setText("                     Playing....");
			bet10.setEnabled(false);
			doneBet.setEnabled(false);
			doubleDown.setEnabled(true);
			newGame.setEnabled(true);
			stay.setEnabled(true);
			hit.setEnabled(true);
		}
	}