What about instead of shuffling an image you shuffle a class?
class MyImage {
MyImage(Image img, Boolean val, int x, int y){
image = img;
unique = val;
posX = x;
posY = y;
}
}
You define a class like that, and add its coordinates and the boolean which defines if it is different.
Now you have to send the pointer event to the collection:
public boolean isUnique(){
return unique;
}
public void Intersects(int x, int y){
if (x > posX && x < (posX + image.Width())
&& y > posY && y < (posY + image.Height())) {
if (isUnique()) {
// Perform action for unique image
}
}
}
So if the boolean you get is true, it means this is your unique image.