r" button is clicked. It only works when the simulation is not running.
Initial Drawing:

The drawGrid function is initially called to draw the empty grid on the canvas.
Overall, this code creates an interactive Conway's Game of Life simulation that allows you to draw patterns, start/stop the simulation, and clear the grid. The simulation continues to evolve based on the rules of the game until you stop it.
-->
