public void paint(Graphics g) {
    super.paint(g);
    cellSize = (this.getWidth() / 8) - 1;
    
    for(int x = 0, row = 0; row <= 8; x += cellSize, row++) {
      g.drawLine(0, x, cellSize * 8, x);
    }
    
    for(int y = 0, col = 0; col <= 8; y += cellSize, col++) {
      g.drawLine(y, 0, y, cellSize * 8);
    }
    
    for(PieceView pv : pieceViews) {
      pv.repaint();
    }
  }