set obj to an object to be removed from the bag and remove it
*pobj = ranking.rank[ranking.next];
ranking.next = ranking.next + 1;