Border of the map is considered as obstacle