updated the ace count routine to interact with add card routine