Implement warping in move_dir