This is a lattice simulation of a phase separating system - a monte-carlo simulation of the Florey-Huggins model. At every turn, two sites are 'exchanged', and energy raising states are accepted with a small probability to generate a system that follows a Boltzmann distribution.