Fixed finding the best approximation chain. Still need to figure out why all the guessed keys give the same parity score