public boolean handleInputOrQuit(String line) {	
		boolean quit=false;
		if (line.equalsIgnoreCase("u")) {
			update(null);
		}
		
		if (line.equalsIgnoreCase("q")) {
			quit=true;
		}
		
		// Start a new game
		if (line.equalsIgnoreCase("n")) {
			controller.prepareNewGame();
		}
		
		if (!controller.isWinSituation())
		{
		
			// Take marbles out of a hollow (p1,3 p2,6 ...)
			if (line.matches("p[1-2],[1-6]")) {
				Pattern p = Pattern.compile("[0-9]");
				Matcher m = p.matcher(line);
				
				int[] arg = new int[2];
				for (int i = 0; i < arg.length; i++) {
					m.find();
					arg[i] = Integer.parseInt(m.group());
				} 
				controller.takeMarbles(arg[0], arg[1]);
			}
			
			if (line.equalsIgnoreCase("c")) {
				controller.doAiTurn();
			}
			if (line.matches("c[1-3]")) {
				Pattern p = Pattern.compile("[1-3]");
				Matcher m = p.matcher(line);
				m.find();
				controller.setAILevel(Integer.parseInt(m.group()));
			}
		}
		
		controller.checkWinSituation();
		
		return quit;
	}