@Override
    public void mouseDragged(MouseEvent e) {
        if (activeMove != null) {
            activeX = e.getX();
            activeY = e.getY();
        } else {
            activeX = -1;
            activeY = -1;
        }
        BufferedImage copyImage = new BufferedImage(lastImage.getWidth(), lastImage.getHeight(), BufferedImage.TYPE_INT_ARGB);
        Graphics2D g = copyImage.createGraphics();
        g.drawImage(lastImage, 0, 0, null);
        renderDragCards(g, game.getBoard());
        Graphics panelGraphics = getGraphics();
        panelGraphics.drawImage(copyImage, 0, 0, null);
        panelGraphics.dispose();
        g.dispose();
    }