The snake will die if you touch the edge. But the problem is I couldn't make the snake die when it hit it's self so instead I made the speed fast so it could still be fast.
I copied my friends game.