ball moving with accelerometer