bool isItAWord(String word) { if (words.contains(word)) { return true; } else if (w.contains(word)) { return true; } return false; }