@Override
    public void mousePressed(MouseEvent e) {
        if (e.getButton() == MouseEvent.BUTTON2){
            //remove item
        }

        if (time + 100 < System.currentTimeMillis() && e.getButton() == MouseEvent.BUTTON1){
            time = System.currentTimeMillis();
            switch (state){
                case 0:
                    mouseStart = new Pair(e.getX(),e.getY());
                    if (e.getButton() == MouseEvent.BUTTON1) {
                        arr.add(new Circle(mouseStart, new Pair (0,0), 0, 0, 1, radius, true, true));
                    }
                    if (e.getButton() == MouseEvent.BUTTON3){
                        arr.add(new Circle(mouseStart, new Pair (0,0), 0, 0, 1, radius, true, true));
                    }
                    state = 1;
                    break;
            }
        }

    }