Update boggle.rb

Refactored