Terrain is now shaded according to phong

I also removed some indexing bugs in the terrain generation