Setting up accelerometer
Added code/methods to ControllerActivity