added 2 rules to handle enemies in both directions