scrabble-score: Adopt functional style

As discussed in #79.