Remove code from index.html, put in snakeUI.js