been working on the snake game again been trying to find and debug errors i’ve tried a bunch of stuff to find what’s wrong with it but here’s some screenshots of what some of the code i’ve been trying

screen.clear()
screen.bgcolor("turquoise")
scoring.goto(0, 0)
scoring.write(" Game Over\n your score is {}".format(score), align="center", font=("courier", 24, "bold"))
time.sleep(2)
time.sleep(delay)
turtle.Terminator()
#screen.bye()
try:
screen.clear()
except turtle.TurtleGraphicsError:
print("screen already terminated")
so what i tried was doing what copilot told me to try and see if i cant fix the screen.clear() error but im still looking for the error