Moved the reference to the CGameFrame object down to the CObject class.