Card logic almost complete