InvertedSnake (buggy unfinished)

You are the food. Snake tries to catch yu!!!
Right now trying to set the movement of the snake as it was a “chain”.
the area is a 3x3 sphere matrix where the player will try to avoid the
snake at all cost.