Then I would put a print string in the loop to check coordinates are coming from the struct correctly.