private static void quit() {
        
     // We're done. Thank the player and exit.
        System.out.println("Would you like to look back on your walkthrough of the game? \n f is for forward (from the start), r is for reverse (from current position), anything else just quits");
        String walkthrough = transaction.nextLine();
        	try{
        	if(walkthrough.equalsIgnoreCase("f")){
        		while(moves>=0){
        			System.out.println(forward.dequeue());
        			moves--;
        		}
        	}
        	else if(walkthrough.equalsIgnoreCase("r")){
        		while(moves>=0){
        			System.out.println(reverse.pop());
        			moves--;
        		}
        	}
        	}catch(Exception ex){
        		System.out.println(ex.getMessage());
        	}
        System.out.println("Thank you for playing.");
        stillPlaying=false;
        
    }