trying terrain algorithms
terrain edge finding pass 1