Further tweaking of the algorithm, still cant get it perfect.
fixed the algorthim depth issue
I think this time we finally got the algorithm to work, taking the max or min value and grabbing the correct score versus trying to improve an existing one.