Divided the search method into two far less ugly methods, one to search squares visible to the brain itself, and one to search squares visible only to allies. Currently only searches through those squares which are reachable from the squares visible to the brain itself, without any non-visible squares on the way.