I was trying to completely rewrite the function to solve it another way. The rewrite didn't work but this was a byproduct
_________________________
The Code is out there