refactor wandering_monster to fit model