Added a weaker priority for defending. Now continents borders are considered. Added anti deadlocks mechanism