Please fix this
if (accelerationX > 500) control = B00000001; //tilt back
if (accelerationX < -500) control = B00000010; //tilt forward
if (accelerationY > 500) control = B00000011; //tilt right
if (accelerationY < -500) control = B00000100; //tilt lfet
if (accelerationX < 500) {
if (accelerationY < 500) {
if (accelerationX > -500) {
if (accelerationY > -500) control = B00000000;}}} //back to blank state
For your last "control = B00000000" just use an ELSE statement.
Next, why does
stop() need to be in every movement? Also all those delays are going to make your code very sluggish. Look into the "Blink Without Delay" example, it will help you greatly.