Simple refactor of the scrabble scoring algorithm