Fixed enemy algorithm logic

deprecate limitedStep script.