adds restart to Snake.js