solucion final a paintedCells
merge