public int locInPrompt(String p, String n) {
        System.out.print("Enter starting " + p + " position for " + n + ": ");
        String str = CommandLine.s.next();
        try {
            int i = Integer.parseInt(str);
            if (0 < i && 11 > i) {return i;}
            else {
                System.out.print("Index out of bounds.\n");
                return locInPrompt(p, n);
            }
        } catch (NumberFormatException e) {
            if (str.equalsIgnoreCase("quit") || str.equalsIgnoreCase("q")) {
                System.out.print("Quit? (y/n) ");
            switch (CommandLine.s.next()) {
                case "yes": 
                case "y":
                    System.out.print("Quitting Execution...\n");
                    System.exit(0); break;
                default: 
                    return locInPrompt(p, n);
                }
            }
        } return locInPrompt(p, n);
    }