A snake game using the canvas API