Fixes for creater Y position.

Also added relative calculation of map's highest point between two points.