grid puzzle game development method

I am a beginner in Unity development. The game you are making now is a simple grid puzzle game. In short, it’s a game where you can create n * m plates and fill each cell with black or white with the game logic. When one stage finishes, it goes to the next stage.
My question is development method.
I created each box of n * m plates as a cube and added one click listener to each cube.
And to make sure the correct answer is correct, I think I should check one space on each stage.
Is this a reasonable way? Is there a better way?

hi;
can u show some pain or screen shots of what u want to make ?