Ising model simulation using terra.js