public static void main(String args[]) throws Exception{
        JoueurClientCmd j = new JoueurClientCmd("/home/user/inf4230/tp1/tp1");
        Grille g = new Grille(10, 10);
        GrilleVerificateur verif = new GrilleVerificateur();
        int next=0;
        while(true){
            if(g.nbLibre()==0){
                System.out.println("Partie nulle");
                break;
            }
            Position coup = j.getProchainCoup(g, 2000);
            if(g.get(coup)!=0){
                System.out.println("Placement illégal!");
                break;
            }
            g.set(coup, next+1);
            int winner = verif.determineGagnant(g);
            if(winner>0){
                System.out.println(g);
                System.out.println("Gagant: " + winner);
                break;
            }
            next = (next+1)%2;
        }
        j = null;
      
    }