implemented closed trajectories for enemies