modification de la methode generateEtatFromBlocksToGoal