Where it was marked with "..", if after the 4 the algorithm had given the subsequence "1 2 4" the game would be over.
So this sequence is wrong and it is not minimum. At that point, our algorithm is not recognizing that the number "3" in the table is non-existant, it should not have played "3" after the ".."
After the mark "!" the game would be over, our algorithm did not recognize the game was over and played another "3 1 2"