Snake game made using Javascript