for (let wordToCheck in words) { if(wordToCheck.length < 3 || wordToCheck.includes(" ")) illegalWord = true; }