Moved the buildDictionary call to the top of getPassword rather than
getWord. This way, the dictionary is built only once per password not
on each word.