Computes value for a word in a game of scrabble