Sometimes 4 print strings

I have array of 1-6 numbers, randomly remove one index from it and then print all integers remained, then reset the array back to 6 indexes with 1-6 numbers

in picture one sometimes print string happens 4 times instead 5

in picture two print string always show 5 numbers

what i do wrong in picture 1 ?

how does GET works, i get array and bottom left specify which index should it get out as an integer?

i post a third picture with little change, then for some reason I always get 0 printed on top of all 5 numbers

I fiex it thanks, so LAST INDEX is 5 instead 4 or something