added initialization of usedWord HashSet (duh)