Wrote deterministic update for interactingLattice