private int parseAnswer(String line) {
        int questionAnswer = Integer.parseInt(line);
        if ((questionAnswer < 1) || (questionAnswer > 16)) {
            throw new IllegalArgumentException();
        }
        return questionAnswer;
    }