bit of refactoring in adventure.rb