Add class to detect if phone is shaken