public void paint(Graphics g) {
		super.paint(g);
		this.g = g;	
		appletSize = this.getSize();
		//GUI: Setting up when buttons are visible and invisible
		if (h.netWorth() < h.bet() && h.netWorth() <= 10) {
			restart.setVisible(false);
			bank.setVisible(true);
		} else {
			bank.setVisible(false);
			if (h.netWorth() < h.bet()) {
				restart.setVisible(false);
			} else {
				restart.setVisible(true);
			}
		}
		if (h.netWorth() >= pot) {
			dd.setVisible(true);
		} else {
			dd.setVisible(false);
		}
		if (h.cardsInHand() == 10) {
			hit.setVisible(false);
		} else {
			hit.setVisible(true);
		}
		g.setFont(new Font("Serif", Font.BOLD, 16));
		g.drawString(score1, appletSize.width/2 - ((int)(appletSize.width * 0.2)), appletSize.height/2 - ((int)(appletSize.width * 0.1)));
		g.drawString("Next Bet = " + h.bet(), appletSize.width/2 - ((int)(appletSize.width * 0.05)), appletSize.height/2 + ((int)(appletSize.width * 0.16)));
		g.drawString("Net Worth = " + h.netWorth(), appletSize.width/2 - ((int)(appletSize.width * 0.05)), appletSize.height/2 + ((int)(appletSize.width * 0.18)));
		if (!playerTurn) {
			g.drawString(score2, appletSize.width/2 - ((int)(appletSize.width * 0.2)), appletSize.height/2 + ((int)(appletSize.width * 0.05)));
			g.setFont(new Font("Serif", Font.BOLD, 22));
			g.drawString(result, appletSize.width/2 - ((int)(appletSize.width * 0.05)), appletSize.height/2 + ((int)(appletSize.width * 0.13)));
		}

		//Drawing Card Panels for player and dealer
		for (int i = 0; i < h.cardsInHand() + 1; i ++) {
			player = new CardPanel(50, 50, 600, 160, h, false, playerTurn, backside, g, appletSize);
			player.draw();
		}
		for (int i = 0; i < hC.cardsInHand() + 1; i ++) {
			comp = new CardPanel(50, 300, 600, 160, hC, true, playerTurn, backside, g, appletSize);
			comp.draw();
		}
	}