@Override
        public void mouseClicked(MouseEvent e) {
            System.out.println("CLICKED");
            if(!isClicked){
                for(Rectangle rec : Rectangle.moveList){
                    if (rec.isIn(e.getX(),e.getY()) && (rec instanceof Field)){
                        isClicked = true;
                        Field.focusedField=(Field)rec;
                    }
                }
            }else{
                Field.focusedField.setX(e.getX());
                Field.focusedField.setY(e.getY());
                isClicked=false;
            }
        }