inserted new method for dodging obstacles (doesnt work yet