art" button (startButton) toggles the simulation on/off.
The "Clear" button (clearButton) clears the grid.
Drawing Cells:

The drawGrid function is responsible for rendering the grid on the canvas. It loops through the grid array and draws rectangles (cells) based on whether they are alive (true) or dead (false).
Cell Interaction:

When you click on the canvas, the handleCanvasClick function calculates the row and column corresponding to the click and toggles the state of the cell.
Counting Neighbor