added doMovement