I made this game with great difficulty. just move your mouse and the snake moves.
Thanks to Duckdogcode a youtuber for helping me here is the link = https://www.youtube.com/watch?v=6a6yXjYMbko