Just click the green flag! Inside the code you can change parameters such as the percent occupied, percent red, and homophily. Homophily is the number of same-colored neighbors that makes an agent stop.
This code is based on a Python implementation of the Schelling model found here: https://github.com/projectmesa/mesa/tree/master/examples/schelling