[main.js] Add "drawSnake" function and initialize