Terrain generation now a bit more functional.

One issue fixed. twenty more popped up.