implemented support method findIt

implemented findIt which reduced code redundancy in popCard and popAny