Changed neighboring-enemies function to actually work-- instead of using a crazy distance function that was messing up. Added isEngaged variable and set it properly.