Added BodyObject as a base class for ball and pad