@Override
	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		g.drawImage(im, 0, 0, this);
		for (int i = 0; i < 8; i++) {
			for (int j = 0; j < 8; j++) {
				g.setColor(new Color(255, 255, 255, 20));
				g.fillRect(i * 50 - 4, j * 50 - 4, 48, 48);
				g.setColor(new Color(255, 255, 255, 30));
				g.drawRect(i * 50 - 4, j * 50 - 4, 48, 48);
			}
		}
		for (int i = 0; i < 8; i++) {
			for (int j = 0; j < 8; j++) {
				matrix[i][j].draw(g);
			}
		}
	}