public static void main (String[] args) throws Exception
	{


		boolean prisonBlock2Clear = false;
		boolean guardsQuartersClear = false;
		boolean loungeClear = false;
		boolean treasuryClear = false;
		boolean vipClear = false;
		boolean ratCageClear = false;
		boolean armoryClear = false;
		boolean kitchenClear = false;
		boolean dragonClear = false;
		boolean sentryClear = false;
		boolean bossClear = false;




		//READS IN ALL ENEMY STATS
		File enemyFile = new File("enemies.txt");
		Scanner enemyFileScanner = new Scanner(enemyFile);
		for(int i = 0; i < enemyCount; i++)
		{
			enemy[counter] = enemyFileScanner.next();
			enemyHealth[counter] = enemyFileScanner.nextInt();
			enemyAttack[counter] = enemyFileScanner.nextInt();
			enemyDefense[counter] = enemyFileScanner.nextInt();
			enemyMagic[counter] = enemyFileScanner.nextInt();
			counter++;
		}

		counter = 0;

		//READS IN ALL PLAYER CHARACTER STATS
		File classesFile = new File("classes.txt");
		Scanner classesFileScanner = new Scanner(classesFile);
		for(int i = 0; i < classesCount; i++)
		{
			classes[counter] = classesFileScanner.next();
			playerHealth[counter] = classesFileScanner.nextInt();
			playerAttack[counter] = classesFileScanner.nextInt();
			playerDefense[counter] = classesFileScanner.nextInt();
			playerMagic[counter] = classesFileScanner.nextInt();
			playerSneak[counter] = classesFileScanner.nextInt();
			counter++;
		}

		//THESE ARE THE PRIVATE METHODS CALLED
		TitleScreen();
		Introduction();
		playerClass = Oldman();


		//SETS STATS ACCORDING TO THOSE OF THE SELECTED CLASS
		switch(playerClass.charAt(0))
		{
			case 'W':
				classNumber = 0;
			break;
			case 'M':
				classNumber = 1;
			break;
			case 'A':
				classNumber = 2;
			break;
			case 'T':
				classNumber = 3;
			break;
		}
		health = playerHealth[classNumber];
		attack = playerAttack[classNumber] ;
		defense = playerDefense[classNumber];
		magic = playerMagic[classNumber];
		sneak = playerSneak[classNumber];



		//BEGINING OF GAME CODE
		System.out.println("\nWould you like to pick your lock? (Y or N)");
		System.out.println(playerName + ": ");
		likeToPlay = input.next();
		likeToPlay = likeToPlay.toUpperCase();

		System.out.println();

		if(!likeToPlay.equals("Y"))
		{
			currentMessage = "\n\nYou rot and prison and never see the light of day for the rest of your life.\n\nGAME OVER\n\n";
			printMessage(currentMessage);
		}
		else
		{
			if(likeToPlay.equals("Y"))
			{
				currentMessage = "You have unlocked your cell!";
				printMessage(currentMessage);
				likeToPlay = "N";
			}

			//WHILE THE PLAYER HASN'T ESCAPED THE DUNGEON
			while(!(x == 3 && y == 4))
			{
				//NO MORE HEALTH = GAME OVER
				if(health <= 0)
				{
					currentMessage = "You have been slain in the dungeon. \n\nGAME OVER";
					printMessage(currentMessage);
					break;
				}




				//PRISON BLOCK 1 (STARTING AREA)
				if(x == 0 && y == 0)
				{
					userSelection = "";
					while(!userSelection.equals("E") && !userSelection.equals("N"))
					{
						currentMessage = "You are at the begining of your journey. Would you like to go (E)ast to the     guards quarters or (N)orth to the other dungeon cells?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();
					}

					//MOVING TO THE NEXT ROOM
					if(userSelection.equals("N"))
					{
						currentMessage = "You crawl through the tunnel and hear the hatch lock behind you.";
						printMessage(currentMessage);
						y++;
					}
					if(userSelection.equals("E"))
					{
						currentMessage = "You walk down the corridor quietly...";
						printMessage(currentMessage);
						x++;
					}
				}




				//PRISON BLOCK 2
				if(x == 0 && y == 1)
				{
					if(userSelection.equals("N") || userSelection.equals("W"))
					{
						currentMessage = "You enter the second cell block.";
						printMessage(currentMessage);
					}

					userSelection = "";

					if(prisonBlock2Clear == true)
					{
						if(escapeAchieved ==  true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							prisonBlock2Clear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						while(!userSelection.equals("E"))
						{
							currentMessage = "You must travel (E)ast. There is no other way to go.\n";
							printMessage(currentMessage);
							System.out.print(playerName + ": ");
							userSelection = input.next();
							userSelection = userSelection.toUpperCase();
						}
						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You walk down the corridor quietly...";
							printMessage(currentMessage);
							x++;
						}
					}
					else
					{
						generated = generator.nextInt(10);
						if(generated < 6)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN RAT
							enemyNumber = 2;
						}
						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							prisonBlock2Clear = true;

						}
						if(userSelection.equals("P"))
						{
							SneakAttempt();
							prisonBlock2Clear = true;
						}
					}
				}



				//GUARDS QUARTERS
				if(x == 1 && y == 0)
				{
					if(userSelection.equals("E") || userSelection.equals("S") || userSelection.equals("W"))
					{
						currentMessage = "You enter the Guards Quarters.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(guardsQuartersClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							guardsQuartersClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (E)ast to the Rat Cage or (N)orth to the Lounge or     (W)est back to your original Cell Block?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You hear the Rats from behind the door. Then you open it...";
							printMessage(currentMessage);
							x++;
						}
						if(userSelection.equals("N"))
						{
							currentMessage = "You hear a guard telling a joke... And then quiet...";
							printMessage(currentMessage);
							y++;
						}
						if(userSelection.equals("W"))
						{
							currentMessage = "You hear the old man weep in his cell...";
							printMessage(currentMessage);
							x--;
						}

					}
					else
					{
						generated = generator.nextInt(10);
						if(generated < 8)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN RAT
							enemyNumber = 2;
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							guardsQuartersClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							guardsQuartersClear = true;
						}
					}
				}




				//LOUNGE
				if(x == 1 && y == 1)
				{
					if(userSelection.equals("E") || userSelection.equals("S") || userSelection.equals("W") || userSelection.equals("N"))
					{
						currentMessage = "You enter the Lounge.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(loungeClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							loungeClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (E)ast to the Armory, (N)orth to the Treasury, (W)est  to the Second Cell Block, or (S)outh to the Guards Quarters?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You hear clanking of swords and armor...";
							printMessage(currentMessage);
							x++;
						}
						if(userSelection.equals("N"))
						{
							currentMessage = "You hear the clinking of coins...";
							printMessage(currentMessage);
							y++;
						}
						if(userSelection.equals("W"))
						{
							currentMessage = "There is a silence from the emptied cells...";
							printMessage(currentMessage);
							x--;
						}
						if(userSelection.equals("S"))
						{
							currentMessage = "You make your way down the hall...";
							printMessage(currentMessage);
							y--;
						}
					}
					else
					{
						generated = generator.nextInt(10);
						if(generated < 5)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{
							if(generated < 8)
							{	//SPAWN RAT
								enemyNumber = 2;
							}
							else
							{	//SPAWN BANKER
								enemyNumber = 3;
							}
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							loungeClear = true;

						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							loungeClear = true;
						}
					}
				}





				//VIP SUITE
				if(x == 0 && y == 2)
				{
					if(userSelection.equals("W"))
					{
						currentMessage = "You enter the VIP Suite.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(vipClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							vipClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here. You notice a lever and pull. Itunlocks a secret passage!";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (E)ast to the Treasury or take the (S)ecret passage? \n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You hear clinking of coins...";
							printMessage(currentMessage);
							x++;
						}
						if(userSelection.equals("S"))
						{
							currentMessage = "You make your way down the passage and pull another lever. The shelf in front of you moves to the side and closes behind you...";
							printMessage(currentMessage);
							y--;
							x = x + 2;
						}
					}
					else
					{
						generated = generator.nextInt(10);
						if(generated == 0)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN PRINCE
							enemyNumber = 4;
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to (S)neak out?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							vipClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							vipClear = true;
						}
					}
				}






				//TREASURY
				if(x == 1 && y == 2)
				{
					if(userSelection.equals("E") || userSelection.equals("W") || userSelection.equals("N"))
					{
						currentMessage = "You enter the Treasury.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(treasuryClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							treasuryClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (E)ast to the Kitchen, (W)est to the VIP Suite, or     (S)outh to the Lounge?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You smell a tasty meal cooking...";
							printMessage(currentMessage);
							x++;
						}
						if(userSelection.equals("W"))
						{
							currentMessage = "You hear humming coming from the next room...";
							printMessage(currentMessage);
							x--;
						}
						if(userSelection.equals("S"))
						{
							currentMessage = "You make your way down the hall...";
							printMessage(currentMessage);
							y--;
						}
					}
					else
					{
						generated = generator.nextInt(10);
						if(generated < 3)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN BANKER
							enemyNumber = 3;
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							treasuryClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							treasuryClear = true;
						}
					}
				}






				//RAT CAGE
				if(x == 2 && y == 0)
				{
					if(userSelection.equals("E") || userSelection.equals("W") || userSelection.equals("N"))
					{
						currentMessage = "You enter the Rat Cage.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(ratCageClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							ratCageClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (E)ast to the Dragon's Den, (N)orth to the Armory, or  (W)est to the Guards Quarters?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You sense that something is on the other side of the door...";
							printMessage(currentMessage);
							x++;
						}
						if(userSelection.equals("N"))
						{
							currentMessage = "You hear the clanking of armor...";
							printMessage(currentMessage);
							y++;
						}
						if(userSelection.equals("W"))
						{
							currentMessage = "Resting Guards are easy kills...";
							printMessage(currentMessage);
							x--;
						}
					}
					else
					{
						generated = generator.nextInt(10);
						if(generated < 2)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN RAT
							enemyNumber = 2;
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							ratCageClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							ratCageClear = true;
						}
					}
				}






				//ARMORY
				if(x == 2 && y == 1)
				{
					if(userSelection.equals("E") || userSelection.equals("S") || userSelection.equals("W") || userSelection.equals("N"))
					{
						currentMessage = "You enter the Armory.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(armoryClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							armoryClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (E)ast to the Dragon's Den, (W)est to the Lounge, or   (S)outh to the Rat Cage?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You hear the roar of a dragon...";
							printMessage(currentMessage);
							x++;
							y--;
						}
						if(userSelection.equals("W"))
						{
							currentMessage = "All is quiet...";
							printMessage(currentMessage);
							x--;
						}
						if(userSelection.equals("S"))
						{
							currentMessage = "Damn rats are all over the place...";
							printMessage(currentMessage);
							y--;
						}
					}
					else
					{
						//ALWAYS SPAWN GUARD
						enemyNumber = 0;
						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							if(killConfirmed = true)
							{
								currentMessage = "You look about the armory and collect some armor. Your defense increases by 10.";
								printMessage(currentMessage);
								defense = defense + 10;
							}
							loot();
							armoryClear = true;

						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							armoryClear = true;
						}
					}
				}






				//KITCHEN
				if(x == 2 && y == 2)
				{
					if(userSelection.equals("E") || userSelection.equals("W"))
					{
						currentMessage = "You enter the Kitchen.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(kitchenClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							kitchenClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (E)ast to the Sentry House or (W)est to the Treasury?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("E"))
						{
							currentMessage = "You hear a booming voice behind the door...";
							printMessage(currentMessage);
							x++;
						}
						if(userSelection.equals("W"))
						{
							currentMessage = "You stare at a huge pyramid of gold bars...";
							printMessage(currentMessage);
							x--;
						}
					}
					else
					{
						generated = generator.nextInt(10);
						if(generated < 2)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN CHEF
							enemyNumber = 5;
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							kitchenClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							kitchenClear = true;
						}
					}
				}







				//DRAGON'S DEN
				if(x == 3 && y == 0)
				{
					if(userSelection.equals("E") || userSelection.equals("S"))
					{
						currentMessage = "You enter the Dragon's Den.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(dragonClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							dragonClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here. Inside the den you notice a    lever and pull. The wall shifts to the side and opens a secret passage";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (WA) West to the Armory, (WR) West to the Rat Cage,    (N)orth to the Sentry House, or through the (S)ecret Passage?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("WR"))
						{
							currentMessage = "You hear the Rats rustling about...";
							printMessage(currentMessage);
							x--;
						}
						if(userSelection.equals("N"))
						{
							currentMessage = "You hear the roar of a booming voice...";
							printMessage(currentMessage);
							y = y + 2;
						}
						if(userSelection.equals("WA"))
						{
							currentMessage = "You stare at the practice dummy for a while...";
							printMessage(currentMessage);
							x--;
							y++;
						}
						if(userSelection.equals("S"))
						{
							currentMessage = "You make your way down the passage and pull another lever. The shelf in frontof you moves to the side and closes behind you...";
							printMessage(currentMessage);
							x = x - 3;
						}



					}
					else
					{
						generated = generator.nextInt(10);
						if(generated == 0)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN DRAGON
							enemyNumber = 1;
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							dragonClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							dragonClear = true;
						}
					}
				}






				//SENTRY HOUSE
				if(x == 3 && y == 2)
				{
					if(userSelection.equals("E") || userSelection.equals("N"))
					{
						currentMessage = "You enter the Sentry House.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(sentryClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							sentryClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (N)orth to the Archway, (W)est to the Kitchen, or (S)outh to the Dragon's Den?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("N"))
						{
							currentMessage = "You hear a parade far off in the distance...";
							printMessage(currentMessage);
							y++;
						}
						if(userSelection.equals("W"))
						{
							currentMessage = "The kitchen smells like homemade pie...";
							printMessage(currentMessage);
							x--;
						}
						if(userSelection.equals("S"))
						{
							currentMessage = "You switfy walk down the corridor...";
							printMessage(currentMessage);
							y = y - 2;
						}
					}
					else
					{
						generated = generator.nextInt(10);
						if(generated == 0)
						{	//SPAWN GUARD
							enemyNumber = 0;
						}
						else
						{	//SPAWN SENTRY
							enemyNumber = 6;
						}

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							sentryClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							sentryClear = true;
						}
					}
				}






				//BOSS ROOM
				if(x == 3 && y == 3)
				{
					if(userSelection.equals("S"))
					{
						currentMessage = "You enter the Archway to the City.";
						printMessage(currentMessage);
					}
					userSelection = "";

					if(bossClear == true)
					{
						if(escapeAchieved == true)
						{	//IF THE ROOM WAS SNUCK OUT OF SPAWN ENEMY ON NEXT ENTRANCE
							escapeAchieved = false;
							bossClear =false;
						}
						currentMessage = "This room is cleared. There are no enemies here.";
						printMessage(currentMessage);

						currentMessage = "Would you like to travel (N)orth to the City or (S)outh to the Sentry House?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						//MOVING TO THE NEXT ROOM
						if(userSelection.equals("N"))
						{
							currentMessage = "You see a parade marching through the streets...";
							printMessage(currentMessage);
							y++;
						}

						if(userSelection.equals("S"))
						{
							currentMessage = "You make your way down the hall...";
							printMessage(currentMessage);
							y--;
						}
					}
					else
					{
						//SPAWN CENTURION

						enemyNumber = 7;

						currentMessage = "You see a " + enemy[enemyNumber] + ". Would you like to (A)ttack or try to sneak (P)ast?\n";
						printMessage(currentMessage);
						System.out.print(playerName + ": ");
						userSelection = input.next();
						userSelection = userSelection.toUpperCase();

						if(userSelection.equals("A"))
						{
							battle();
							loot();
							bossClear = true;
						}
						if(userSelection.equals("P"))
						{

							SneakAttempt();
							bossClear = true;
						}
					}
				}
			}

			if(x == 3 && y == 4)
			{
				currentMessage = "You have made it through the dungeon with your life... Where would you like to  go next?\n";
				printMessage(currentMessage);
				System.out.print(playerName + ": ");
				currentMessage = "(1)Bring the note to the old man's wife.\n(2)Get out of the city with the gold you have as soon as possible.\n";
				printMessage(currentMessage);
				System.out.print(playerName + ": ");
				userSelection = input.next();
				userSelection = userSelection.toUpperCase();

				if(userSelection.equals("1"))
				{
					currentMessage = ".....\nYou knock on the door and a nice old woman opens the door.\n\nOLD WOMAN: \"What do you need young laddy?\"\n\nYou peek in the door and see the old man sitting there.\n\n" + playerName + ": \"I thought you were dying?\"\n\nOLD MAN: Nope, I'm alive and well. I have tasked others with the challenge of breaking out but all of them have died. Then you came along and I just followed you out the Archway. I guess payment would suffice.\"\n\n50 Gold Added\n\nYou leave the city in peace with " + totalGold + " gold in your pocket...";
					printMessage(currentMessage);
					totalGold = totalGold + 50;

				}
				else
				{
					currentMessage = "You have escaped the City with your head held high and " + totalGold + "gold in your pocket!";
					printMessage(currentMessage);
				}

				currentMessage = "You have WON!!!";
				printMessage(currentMessage);
			}
		}
	}