fixed motion to stay on grid