Ok, so I have a class called wpawn (making a chess game) and have instances of wpawn called wpawn1 through wpawn8 (8 pawns on a chess board per side). I have a function that can "select" a piece by changing a private data member in the class, "bool selected," from 0 to 1. All other instances should be at 0, so only 1 piece can be selected at a time. Now I wish to manipulate just that one instance of the wpawn class. How do I do this without creating code explicitly for each instance seperately?