refactors scrabble.rb to eliminate map