Nonlinear dynamics for the Ising model