added gravity sensor in GameActivity