Playing around with snake game in JS and HTML5