You could give each icon an instance variable to identify, so numbered 1,2,3,4,5
Have each player as a global variable, and assign them this number on selected.
So if player 1 picks 3 then P1=3, if player 2 picks 2 then P2=2
Then you can compare what P1 and P2 are and make them invisible. When you reset you set P1 and P2 to 0 and therefore icons reset.