How is one to collect a material or piece by piece, I do not know yet, but there are options to create a mask image on each square and then collect in a single material, but again there will be big trouble maintaining ...
Do something like this
Do something like this