You didn't add the

>step(M, M.dir)

that causes them to slide.