I don't have C2 in front of me but from what I gather here he is saying just like you did with the max height to keep it from filling your screen, check what row(Y) you are at in the array, and based on that do logic to say if array.Y = 4 then the tile you should use is "whatever tile goes on that row"...
Hope that helps, sorry if not.