public static void playGame() {
		for (Player p : playerList) {
			int bet;
			System.out.printf("%s, you have $%.2f in your wallet.\n", p.getName(), p.getWallet());
			System.out.print("How much do you want to bet? ");
			
			do {
				try {
					bet = scan.nextInt();
				}
				catch(InputMismatchException e) {
					bet = -1;
				}
				
				scan.nextLine();
				
				if (bet < 0)
					System.out.print("Invalid input. Please choose a new bet: ");
				else if (bet < 1)
					System.out.print("Sorry, the minimum bet is $1.00. Please choose a new bet: ");
				else if (bet > p.getWallet())
					System.out.print("The amount bet exceeds the amount in the wallet. Please choose a new bet: ");
				else
					p.setBet(bet);
				
			} while (bet < 1 || bet > p.getWallet());
		}
		
		dealer.deal(playerList, deck, dealer);
		
		for (Player p : playerList) {
			System.out.printf("%s's card is %s.\n", dealer.getName(), dealer.getHand().getCard(0));
			playHand(p, p.getHand());
		}
		
		dealer.playHand(deck);
	}