private static List<Integer> getMatchingPair(List<Integer> facevalues) throws IOException {
		List<Integer> matchingPair = new ArrayList<Integer>();
		int dicenum1 = -1;
		int dicenum2 = -1;
		int facevalue1 = -1;
		int facevalue2 = -1;
		
		boolean goodpair = false;
		
		while (!goodpair)  {
			out.print("Enter first dice number of the pair: ");
			String commandline = readLineFromConsole();
			try {
				dicenum1 = Integer.parseInt(commandline);
			}
			catch (NumberFormatException e) {
				dicenum1 = -1;
			}
			out.print("Enter second dice number of the pair: ");
			commandline = readLineFromConsole();
			try {
				dicenum2 = Integer.parseInt(commandline);
			}
			catch (NumberFormatException e) {
				dicenum2 = -1;
			}
			if (dicenum1 < 1 || dicenum1 > 6 || dicenum2 < 1 || dicenum2 > 6) {
				out.println ("Legal dice numbers are from 1 .. 6!");
			}
			else {
				facevalue1 = facevalues.get(dicenum1 - 1);
				facevalue2 = facevalues.get(dicenum2 - 1);
				
				if (facevalue1 != facevalue2) {
					out.println ("Please choose dice numbers with the same face value!");
				}
				else {
					goodpair = true;
				}
			}
			
		}
		
		matchingPair.add(dicenum1);
		matchingPair.add(dicenum2);

		return matchingPair;
	}