enemy moving, code refactoring