Added enemy class and did some refactoring.