@Override
        public void mouseClicked(MouseEvent e) {
            if (e.getButton() == MouseEvent.BUTTON1) {
                Sprite sprite = null;
                if (currentTool == Tool.SPRAY) {
                    super.mouseClicked(e);
                    sprite = new SpraySprite(e.getX(), e.getY(), 1, 100, Color.MAGENTA);
                } else if (currentTool == Tool.DOT) {
                    sprite = new DotSprite(e.getX(), e.getY(), 100, Color.MAGENTA);
                }
                if (sprite != null) {
                    window.addSprite(sprite);
                    window.repaint();
                }
            }
        }