bugfixes obstacles - tested distance and constant recreation