the snake can not eat the food creactly,and the move of snake has some bugs..I think i should check the array api in javascript