detecting binary tree, recognizing playing card.