Runs a typical snake game. Starts with a few apples in the canvas. Resets the canvas and proceeds to next level with a new set of apples. The game is over when the snake hits itself or the borders of the canvas.