Do/while loop is freezing the engine? Help!

it has 100 elements stored in the data table of vector locations