limit movement to x