public static void main(String[] args) {
		BlackJackGame bjg;
		Scanner stdin=new Scanner(in);
		String prompt;
		boolean shouldRun=true;
		out.println("Welcome to BlackJack!");
		out.println("What is your name?");
		String name = stdin.nextLine();
		out.println("How many decks do you want to play?");
		int numOfDecks=Integer.parseInt(stdin.nextLine());
		out.println("You are playing with "+numOfDecks+" Decks.");
		bjg=new BlackJackGame(numOfDecks,name);
		
		do{
			if(bjg.remainingCard()<10){
				out.println("There are not enough cards to play!\n"
						+ "The game will now exit");
				break;
			}
			bjg.start();
			while(!bjg.getPlayer().isBusted()){
				out.println("Do you want to hit? (y/n)");
				prompt=stdin.nextLine();
				if(prompt.charAt(0)=='Y'||prompt.charAt(0)=='y')
					bjg.playerHit();
				else
					break;
			}
			if(!bjg.getPlayer().isBusted())
				bjg.houseHit();
			bjg.result();
			out.println("\nDo you want to continue? (y/n)");
			prompt=stdin.nextLine();
			if(prompt.charAt(0)=='N'||prompt.charAt(0)=='n')
				shouldRun=false;
			bjg.clearHands();
		}while(shouldRun);
		out.println("Thanks for playing, Bye!");
		stdin.close();
	}