for ( int x = 0; x < GRIDSQUARES; x++ ) { Grid[x].Loc = hgeRect ( x1, y1, x2, y2 ); Grid[x].HasPebble = false; }