refactoring of inheritance structure for collidables and drawables