connected new DeviceMotion code to viewDidLoad method
fixed a reference to DeviceMotion attitude