change zigzag behaviour

now change direction on hitwall, enemy and after 20 onScanned events