inverting ball direction when using accelerometer