Rewrite TBScore in uci_pv()

Streamline the code and make
it understandable.

No functional change.