fixed bug in find nearest enemy