scrabble: implemented score functions