sometimes i'm running other things on a certain port, and may need to change the port
let's log a bit more
Ok, so it turns out that shuffle actually shuffles the input. That is, it modifies the input. So we were assuming this would not happen. So were were ending up with 2 references to the same shuffled array, and these of course would ALWAYS fail the "checkMatch" and so it was an infinite loop.