Classic snake game with HTML5 canvas and localStorage usage