added new devicemotion instead of accelerometer and added a cancel button to tutorial alert