private boolean countLetters(String letter, String[] splittedWord, ArrayList<String> letterMix){
		
		int letterCount=0;//count number of times the letter is in the word being processed  
		for (int i = 0; i < splittedWord.length; i++) {
			if(letter.equals(splittedWord[i])){
				letterCount++;
			}
		}
		
		int stringCount=0; //count the number of times the letter from the word being processed is in the grid
		for (String string : letterMix) {
			if(letter.equals(string)){
				stringCount++;
			}
		}
		
		if(letterCount<=stringCount){ //if the letter appears the same number of times in the word and in the grid return true
			return true;
		}
		return false;
		
	}