Negamax and Zobrist key hashing optimization