played around with Spinstate class, magnetization and energy for 1D seem ok