Refactored move_monster().