Update fields.lua

Rewrote the `getSingleFieldEgde` function using `tg` from the beginning and adding a direction change routine in it, reducing  `scanStep` 1 by 1 until the direction change is under the desired value.
the result on the base map is not bad at all.