above is done successfully
Now i was trying to do something else and got stuck at that
in this image these colors has 2 variables "player" & "color"
there is a preview icon which represents picked color
we have total 4 colors if i choose color red for player 1 then player 1's preview icon (which is yellow currently) will be replace with red icon and the red icon (which is situated after player 3) will be replaced with yellow. in short swiping the color.
i getting problem here 1st and 2nd icons are swapped but 3rd icon is not swapping. I am not getting what wring i am doing here.
these are my events for swapping.