Creating base class for GameObjects.