Use the up, down, right, and left arrows to control the snake. Use R to restart.
The background, walls, and the snake are not actual costumes. They are all single blocks that I duplicated and used the stamp tool. Thankyou @Techy2000 for some help to make the code easier.