Thanks for your comment, I should expand the map and the number of the obstacles cause one main reason of continuously getting hit is the map size.