letter testing function for scrabble