Fixed a bug in print_pv.
Bogus moves were being applied to the board because
print_pv was being called before the search took place.
Massive commit with some debugging stuff added.
A few bug fixes as well, notably unmaking the hash move correctly,
and correctly breaking cycles in the PV print loop.
We should note that print_pv doesn't actually print the principal
variation.