I created a snake game using java script in the p5.js online editor. I then used teachable machine to train an image of an arrow pointing right, left, up or down. The image of right and left were flipped because when the video is displayed in p5.js, it mirrors the images. Using that, I imported the code into the snake game and displayed a video that would record from my webcam. The snake game worked by the player holding the piece of paper with an arrow drawn on it. If the player wanted the snake to move up, they would hold the paper with the arrow facing up. They would do the same thing for left, right. and down, and the snake would then move in the corresponding direction.