My game closes unexpectedly

extends Area2D

@onready var game_manager = %“game manager”

func _on_body_entered(body):
if (body.name==‘CharacterBody2D’):
game_manager.add_point()
queue_free()

is there a proble pease,it closes after some time

what node type is game manager? add_point makes me think it is a line2d. if you add points and never remove them i imagine that will cause problems.