move Zobrist hash computation into loop to stop Xcode from complaining about „garbage value“