added wordsInPuzzle method