As seen in the code listing, we use multiple instances of rows of squares (an xzRow) in drawing the board. The different instances are created through the use of a translation by an appropriate amount in the z-direction. Also, the parameters 1 and 2 passed to xzRow set the alternating pattern of colors used for the squares in the row.