moving object on grid by snapping every x units.