snake game written in JS