tested obstacle gen by distance, added borders

Signed-off-by: Springo <kevinmxia@gmail.com>