Ising model pseudocode. It is formed by spins up or down, which can interact