public void clean(){
        index =0;
        path.clear();
    }