refactors scrabble.rb