Support 18 card logic

logic is working for 18 cards