Refactored compare card, fixed bug