snake project using js