refactor and rename allElementsAreTrue function to enoughElementsAreTrue. The match array can contain false values so long as there are as many true values as the length of the word we are testing