Bug fix: Made max hits variable visible to alive check function