So, basically im using the codea bove to generate coordinates for a grid, but I only want to generate coordinates for the "outer ring" of a square. SO imagine a grid of 7x7, I won't generate coordinates for the inner 5x5 square, only for the outer ring. Basically I drew it all out on paper, used fake numbers and based off that I came up with t his logic that can be changed around. In the code "25" is used as dummy data for the distance between the center of one square and another. The 150 that you see can be changed to be whatever the far end coordinate is. It could be 250, or even 200.

Also, I was trying to do this code in such a way that I could loop through all the spots (49), and only set data for the top row, the bottom row and the first and last spot for the rows inbetween.

SOme other logic i gathered up, a table goes from 0,0 to 6,6. If (x is between 0 and 6 and y is 0) or (x is between 0 and 6 and y is always 6) then do data for the top and bottom row respectively. And then for the rows in between (if x is 0 OR 6 and y is between 1 and 5), do data. Id loop through 49 times and using the following logic:

x=((i%7)+1)*25

y=((i/7)+1)25