SNAKE!

Snake is now fully functioning. I made it so that the snake’s body will
follow the head, grow longer and the snake’s speed will increases as
you eat apples.

To make the body follow the head I used an array that stored the
x-coordinates and y-coordinates for each body segment. Every time the
snake moved deleted the whole body, swapped the x and y-coordinates for
each body segment with the one in front of it and made the whole thing
green.

Note: I would like to thank my friend Justin who helped me to
understand how arrays work by creating a helpful 3D representation of
them in MineCraft and explaining how they are created and how they
function.