making guards return to spawn when there is nothing to attack, adding some logging