check obstacles works