Implemented the accelerometer for movement, still need fixing