void aStarAlgo() {
       /*
       openList.add(depart);
       while(openList.size()>0){
           Node current = findBestOpen();
           closedList.add(current);
           openList.remove(current);

           current.setColor(Color.cyan);
           if(current.getState() == ARRIVE){
               break;
           }

           calculerVoisinage(current);

           try{
               Thread.sleep(15);
           }catch (Exception e){

           }
       }

       Node unPas = view_grid.grids[arrive.getX()][arrive.getYpos()];
       path = new ArrayList<Node>();
       while(unPas.getParent()!= null){
           path.add(unPas);
           unPas= unPas.getParent();
       }
        return;
       */



               if (openList.size() > 0) { // Ici c'est normalement un while, mais puisque je suis dnas un
                   // Runnable c'est un if appeler plusieurs fois
                   Node current = findBestOpen();
                   closedList.add(current);
                   openList.remove(current);

                   current.setColor(Color.cyan);


                   if (current.getState() == ARRIVE) {
                       System.out.println("arrive");
                       Node unPas = view_grid.grids[arrive.getXpos()][arrive.getYpos()];
                       path = new ArrayList<Node>();
                       while (unPas.getParent() != null) {
                           path.add(unPas);
                           unPas = unPas.getParent();
                       }

                       for (Node pathNode : path) {
                           pathNode.setColor(Color.getHSBColor(120, 100, 50));
                       }
                       timer_aStar.stop();
                   }
                   calculerVoisinage(current);
               }else {
               timer_aStar.stop();
               }

     /*  final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();

       executor.scheduleAtFixedRate(new Runnable() {
           @Override
           public void run() {
               if(openList.size()>0){ // Ici c'est normalement un while, mais puisque je suis dnas un
                                      // Runnable c'est un if appeler plusieurs fois
                   Node current = findBestOpen();
                   closedList.add(current);
                   openList.remove(current);

                   current.setColor(Color.pink);


                   if(current.getState() == 3){
                       System.out.println("arrive");


                       executor.shutdown();
                   }
                   calculerVoisinage(current);

               }

           }

       },0,10, TimeUnit.MILLISECONDS);
*/
}