Moved moving left and right out of the for loop

Why was it in there idk