Added logic to take action on action cards