Fix grid indices generation
Specify grid size in squares, for clarity
Fix generating vertices

Ensure vertices are generated by row then column.
Change scene

Move camera. Render more detailed grid. Give the grid a more interesting
height function.