refactoring scrabble score