enemy movement optimization