private void DrawSelectedBlock(int x, int y, Graphics g)
  {
    Graphics2D g2 = (Graphics2D)g;
    BasicStroke s = new BasicStroke(2.0F);
    g2.setStroke(s);

    if ((x >= 0) && (x < 10) && (y >= 0) && (y < 10))
      g.drawRect(x * this.W + 1 + this.W, y * this.W + 1 + this.W, this.W - 3, this.W - 3);
  }