3d problem with a simple title game

in practice I create the tile passing them row and column:

Then the depth is missing!

For 3D you need a PVector with 3 parameters

You fill them in 3-fold nested for loop

for x
  for y 
    for z 
      PVector....