[7] Update algorithm in GameObject::drawObject.