use accelerometer to move