This is the scrabble problem