added tolerance value to map generation to help smooth out random z values in heigh map