(Tween) Refactor update_tween and make it a static function