I'd have to see your Match routine, but I think you could use the .TAG property of the pictureboxes to store what is in them. Just use the picture number. Then, you could match easily.