Created an abstract base class for the moving entities.