Made changes for when the device has a shake action the gravity reverses.