added function to get number of pieces left for a given player