module DrawGrid

Include this in your simulation and define GRID_WIDTH to draw a grid in the window.