Make the generationSolution alldifferent on lines and columns