refactor scrabble score