you are playing snake on a 9 across, 7 tall grid. you cannot crash into a wall in this game of snake, instead you will simply be prevented from moving out of the grid
you start at the center
and the snake's name is gary
controls:
"move left" moves gary left 1 space
"move up" moves gary up 1 space
"move right" moves gary right 1 space
"move down" moves gary down 1 space
here's the board:
⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜🐍⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜⬜⬜⬜⬜⬜⬜⬜⬜
⬜🍎⬜⬜⬜⬜⬜⬜⬜
you also will be prevented from crossing over yourself, if no moves are possible, you restart from the center of the board with 2 length lost, and you grow back to that new length from there