created a superclass for Enemy