The joystick moves the snake around, but if you touch the edge or get to 10 you will reset to 1 length.
Thanks to @griffpatch for the joystick tutorial, and to @ayaantonse123 for remixing my project.