@Override

    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.setColor(Color.BLACK);
        for (Cell cell : this.solut) {
            int x = (this.cellWidth + 1) * cell.getX();
            int y = (this.cellWidth + 1) * cell.getY();

            if (cell.isPopulated()) {
                g.setColor(cell.getColor());
                //System.out.println(cell.getColor());
            } else {
                g.setColor(Color.lightGray);
            }

           // System.out.println("Hello!");
            g.fillRect(x, y, this.cellWidth, this.cellWidth);
            //System.out.println(x+" " +y*(cellWidth+1)+" "+ this.cellWidth+" "+ this.cellWidth);

        }

    }