public void randomPiece() {
        //int nombreAleatoire = Min + (int)(Math.random() * ((Max - Min) + 1));
        int random = 1 + (int) (Math.random() * ((6) + 1));
        Piece p1 = new Piece();
        switch (random) {
            case 1:
                barre();
                break;

            case 2:
                carre();
                break;

            case 3:
                T();
                break;

            case 4:
                L();
                break;

            case 5:
                invL();
                break;

            case 6:
                Z();
                break;

            case 7:
                invZ();
                break;
        }
    }