can now select words in displayWords function