today i was working on the snake game and added new fruit functions and to have the fruit to appear and disappear when eaten its still not done yet but here are some screenshots of the code

here is the screenshot and here is the link to the video i used https://www.youtube.com/watch?v=bzWzlXiavXs&list=TLGGgR4lvn4L3toxOTA5MjAyNQ&t=1558s
i stopped at 25:58