terrain function
findChar added