fixed problem in card AI