* added obstacle generator

* changes according to addition of obstacles