Rewrite of javascript-based Snake game, of August 22, 2013.