public boolean CheckColonneId(Position pos, int n,int id)
    {
        int x=pos.x;
        int y=pos.y;
        int x_end=x + n;  
        while(x <= longueur && x< x_end && etatPlateau[x-1][y-1] == id)
        {
            x++;
        }
        if(x == x_end )
        {
            return true;
        }
        else
        {
            return false;
        }
    }