made detectOPT not accidentally detect walls.