Fixed 2D lattice Ising generation code, verified by submitting to the spin-glass server.