refactor scrabble_score