Cube Matcher - Confused about fixing this game

https://www.codecademy.com/paths/create-video-games-with-phaser/tracks/game-dev-learn-javascript-higher-order-functions-and-iterators/modules/game-dev-project-iterators/projects/cube-matcher

I’ve done steps 1 and 2. They are quite easy as they require you to just locate things. I’m completely stuck on step 3. I have no idea what to code. Can someone help me out?

Hi! Iterators are messing with me too, but to do this part is to look at what you are trying to do with the code. We went through (col) now we want to go through (row) and find each square that way as they did before. Check the directions and see how we’re basically doing the same thing but in a different direction :slight_smile:

I’m also having trouble with this, and not even the code provided in the solutions is working, this is what i have:

return board.map((col, i) => {

      return col.map((row, j) => {

        return this.makeCube(i,j)});

    });