private static void navigate() { 
        int INVALID=-1;
        Locale newLocation=new Locale();
        newLocation=currentLocale;
        
        try {
        if (command.equalsIgnoreCase("north") || command.equalsIgnoreCase("n") ) {
        	if(currentLocale.getNorth()!=null){
                currentLocale = currentLocale.getNorth();
                moves+=1;
                lookUpDown.push(currentLocale);
                lookDownUp.enqueue(currentLocale);
                money.add(coins.nextInt(16));
                
            }else{
                System.out.println("You can't go that way");
            }
        } else if ( command.equalsIgnoreCase("south") || command.equalsIgnoreCase("s") ) {
        	if(currentLocale.getSouth()!=null){
                currentLocale = currentLocale.getSouth();
                moves+=1;
                lookUpDown.push(currentLocale);
                lookDownUp.enqueue(currentLocale);
                money.add(coins.nextInt(16));
            }else{
                System.out.println("You can't go that way");
            }
        } else if ( command.equalsIgnoreCase("east")  || command.equalsIgnoreCase("e") ) {
        	if(currentLocale.getEast()!=null){
                currentLocale = currentLocale.getEast();
                moves+=1;
                lookUpDown.push(currentLocale);
                lookDownUp.enqueue(currentLocale);
                money.add(coins.nextInt(16));
            }else{
                System.out.println("You can't go that way");
            }
        } else if ( command.equalsIgnoreCase("west")  || command.equalsIgnoreCase("w") ) {
        	if(currentLocale.getWest()!=null){
                currentLocale = currentLocale.getWest();
                moves+=1;
                lookUpDown.push(currentLocale);
                lookDownUp.enqueue(currentLocale);
                money.add(coins.nextInt(16));
            }else{
                System.out.println("You can't go that way");
            }
        	
        } else if ( command.equalsIgnoreCase("quit")  || command.equalsIgnoreCase("q")) {
            quit();
        } else if ( command.equalsIgnoreCase("help")  || command.equalsIgnoreCase("h")) {
            help();
        } else if ( command.equalsIgnoreCase("shop")  || command.equalsIgnoreCase("os")) {
        	//this is where the magic shop is. the first time you open the shop there is a dialogue.
        	//every other time you open the shop there is the same dialogue each time thats different from the first time.
        	if (currentLocale.getId()==5){
        		janitor++;
        		if (janitor == 1){
        			ShopSetup(magicItems);
        		}else if (janitor >= 2){
        			ShopBuy();
        		}
        		
        	}else{
        		if (janitor == 0){
        			System.out.println("*This is no place for a shop... ya dingus!!*" + "\n");
        		}
        		else{
        			System.out.println("*You must go to the Janitor's closet of wonders!*" + "\n");
        		}
        	}
        } else if ( command.equalsIgnoreCase("take") || command.equalsIgnoreCase("t")) {
        	Take();
        } else if ( command.equalsIgnoreCase("map") || command.equalsIgnoreCase("m")) {
        	mapAscii();
        } else if ( command.equalsIgnoreCase("inventory") || command.equalsIgnoreCase("i")) {
        	bag();
        } else if ( command.equalsIgnoreCase("leave") || command.equalsIgnoreCase("l")) {
        	if (((currentLocale.getId() == 2 || currentLocale.getId()==6)) && unlock1 == true){
        		System.out.println("You thrust open the door to finally taste the fresh,");
        		System.out.println("outdoor air. Looking around, you search to find someone");
        		System.out.println("to explain the strange, empty hospital.");
        		System.out.println("However, all you can see are empty cars strewn throughout the road.");
                System.out.println("Not a soul is nearby. There is no sign of human life.");	
                System.out.println("You are still alone!");
                System.out.println("TO BE CONTINUED...");
        		quit();
        	}else{
        		System.out.println("*Shadowy voice*: YOU CANNOT LEAVE PUNY HUMAN!!"+"\n");
        	}
    	} else if ( command.equalsIgnoreCase("shit")) {
        	System.out.println("This kind of language is not going to get you anywhere!" + "\n");
        } else if ( command.equalsIgnoreCase("fuck")) {
        	System.out.println("You can't do that here." + "\n");
        } else if ( command.equalsIgnoreCase("poop")) {
        	System.out.println("You stop what you are doing, drop your pants and take a duce." + "\n");
        } else if ( command.equalsIgnoreCase("unlock") || command.equalsIgnoreCase("u")){
        	unlock();
        }else {//if you input an invalid text command you get this error message.
        	System.out.println("Error: Invalid text command");
        	System.out.println("To see a list of commands enter: help");
        }
        
        }catch(Exception ex){
        	ex.getMessage();
        }
        if(currentLocale.getHasVisited()==true){
          	
          	
          }
          else{
          	currentLocale.setHasVisited(true);
          	score=score+5;
          	
          } 
    }