Let's Make Robots!

c wire logic

help, loop slowing down farther the object is

i need a little help with my coding....for some reason, when i run it it slows down the farther the object in its path, then i bring an object closer the faster it  cycles through the loop and i cant seem to find the reason why

so here is the code 

ignore the functions at the bottom that is for another time when i try to get those to work 

any help will be apprecaited