Update grid.py

used loops