Test with devicemotion event

devicemotion event now sets the simulation's gravity.