When I run the code attached the following is printed out for channel 2:
2 In Old List: YES
2 In New List: YES
From the lists listed at the top of the code it is clear that '2 In New List:' should say no.
Can someone explain to me why this happens and provide a solution.