public HangmanState(Set<String> knownWords) {
		/* initialize answer */
		int index = (int) (Math.random() * knownWords.size());
		Iterator<String> itr = knownWords.iterator();
		for (int i = -1; i < index - 1; i++) {
			itr.next();
		}
		this.theAnswer = itr.next();

		this.lettersGuessed = new HashSet<String>();

		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < theAnswer.length(); i++) {
			sb.append("-");
		}
		feedbackToUser = sb.toString();

		/* initialize possibleAnswers */
		possibleAnswers = new HashSet<String>();
		for (String word : knownWords) {
			if (word.length() == theAnswer.length()) {
				possibleAnswers.add(word);
			}
		}
		updatePossibleAnswers();
	}