Fix Dictionary criteria for adding words and method of changing
ArrayList elements.