Introduction - If you have any usage issues, please Google them yourself
This algorithm is slightly different the Snake online. Internet is the snake all nodes are stored down.
Data structure is not complex
Save snakeheads to a tail address. There are saving direction. Then save the inflection point with a queue (FIFO table)