added code for comparing current hash with zobrist