public static int getDirection() {
		String message = "";
		int selected = 0;
		Scanner sc = new Scanner (System.in);
		boolean inputOK = false;
		while (! inputOK) {
			String choice = sc.nextLine();
			if (choice != null) {
				if ( choice.equals("0") || choice.equals("1")) {
					inputOK = true;
					if (choice.equals("1")) {
						selected = 1;
					} 
				} else {
					message = "ongeldige ingave (moet 0 of 1 zijn)";
				}
			} else {
				message = "niets ingegeven";
			}
			if (! message.isEmpty()) {
				System.out.println(message);
			}
		}
		return selected;
	}