Fix bug in negamax search

The code used an previously calculated hash value, but when you make a
move, the hash changes. This change uses the correct hash value.
This change also seems to make the program faster.