Hi!
I'm making a game for a college portfolio and my game requires a grid with squares in it. The squares are completely cosmetic and will not be in the final game but I need them as a point of reference so I know where the spaces are as I program.
I tried doing this by drawing one large region to show the whole area and a bunch of smaller region to represent each space. However while it drew the larger region it couldn't draw the smaller ones. The game just takes forever to load and then doesn't have the smaller regions drawn. So I figured that the game engine just couldn't handle the 625 regions I needed (thats a large region with 25 small regions across and down at 20 pixels each) so I decided to do this with squares instead.

STILL DIDN'T draw them all! So I decided it would be simpler to draw 25 horizontal lines and 25 vertical lines across the region to give the game less to draw and STILL DOES. NOT. WORK.

It will draw the first line and that's IT. I have a deadline to make and this is so frustrating. I have a picture of the draw behavior and the resulting screen .
numOfSquares = Number of squares in each row
squareSize = The size of each smaller square that needs to be represented
regionX = The x coordinate of the top left corner of the main region (where all the smaller squares are)
regionY = Same as regionX, but the Y coordinate.
maxRangeX = The maximum value of x in the giant square AKA the x coordinate of the bottom right corner
maxRangeX = Same as maxRangeX but the maximum Y
Any suggestion to other way to do this rather than what I'm already trying to implement is appreciated