protected void interprete(String cmd) {
		if ("n".equalsIgnoreCase(cmd)) {
			newGame();
		} else if ("m".equalsIgnoreCase(cmd)) {
			engineMove();
		} else if ("p".equalsIgnoreCase(cmd)) {
			printBoard();
		} else if ("u".equalsIgnoreCase(cmd)) {
			undoMove();
		} else if ("e".equalsIgnoreCase(cmd)) {
			evaluate();
		} else if ("moves".equalsIgnoreCase(cmd)) {
			showPossibleMoves();
		} else {
			try {
				humanMove(cmd);
			} catch (IllegalArgumentException ex) {
				println("unknown command: " + cmd);
			}
		}
	}