implemented accelerometer, unsure if works