Refactored so TiltSensor does not need to know about GameActivity and does not invalidate the view but instead takes a listener.