Brick game : snake, html, js