It looks like your intent is to create the bricks by rows, meaning that you are creating each row with the inner loop and switching to the next row with the outer loop. However, you are incrementing the y coordinate on the inner loop. This means that you're creating the bricks by columns. If you want to see it happen, insert the following line inside the inner loop:
for( time = 0; time < 1000000; time++); // slows display of bricks.
You might have to play with the 1000000 to get a nice speed that you can see the progression.
Try changing the code so that the x coordinate is incremented on the inner loop and the y coordinate is changed on the outer loop.
If this answers your question, please mark it as answered. Let's keep up on forum housekeeping. ;-)