Fixed the deadlock in build order search

Also changed how many cannons that are being built in defense state
Changed where the army is placed in defense state

It is now placed in the owned region that is closest to the closest enemy
region instead of the owned region that is closed to the enemy's starting
point
Small fix for the search goal fix
Merge branch 'defend' into develop