redone enemy random card algorithm