Partial success with drawing grid. Standardized nested for-loops.