What is locx and locy that you're comparing to? What are their values? Assuming they are set somewhere and correct, maybe check the array itself. The screenshot is of the array file and not the array, did you add the data to the array correctly during runtime?