Fixed grid.py (Sorry NINJA's)