the snake will follow the mouse. you can cut the snake on the red line.
it will get laggy. when that happens, make it touch the edge.