Work on terrainFunction.
Implement terrainFunction.
Test terrain and findChar a little more.