Fix obstacles logic

Signed-off-by: Kiril Nesenko <knesenko@redhat.com>
Merge pull request #5 from knesenko/master

Fix obstacles logic