extends Area2D func _on_Flag_body_entered(body): body.check_flag() get_parent().end_level()