perfect stopping for terrain