Refactoring enemy class