Snake game implemented in javascript/jquery