Vector with pointers for obstacles. All working