@Override
    public void keyPressed(KeyEvent e) {
      int code = e.getKeyCode();
      switch (code) {
	// case KeyEvent.VK_Z: H -= 10; paintComponent(getGraphics()); break;
	case KeyEvent.VK_Z: H -= 10; getW(); break;
	case KeyEvent.VK_S: H += 10; repaint(); getW(); break;
	case KeyEvent.VK_Q: W -= 10; invalidate(); getW(); break;
	case KeyEvent.VK_D: W += 10; validate(); getW(); break;
	case KeyEvent.VK_UP:
	  moveChecker(0, -1);
	  break;
	case KeyEvent.VK_DOWN:
	  moveChecker(0, 1);
	  break;
	case KeyEvent.VK_LEFT:
	  ;
	  moveChecker(-1, 0);
	  break;
	case KeyEvent.VK_RIGHT:
	  ;
	  moveChecker(1, 0);
	  break;
	case KeyEvent.VK_HOME:
	  hideChecker();
	  posX = 3 * DIAM;
	  posY = 3 * DIAM;
	  showChecker();
      }
    }