Update grid.py

Stored the grid in a 2-dimensional list and then looped to print each line.