wumpus refactoring challenge