Update grid.py

Hello Sir This Is My updated grid work