Box moves right and left for accelerometer