added basic obstacles code