classic snake using jquery