It's not bad, but what kind of snake can walk back over itself?? Make it so the snake cant go back the way it came. So if its going right it can't go left. You should also make the snake and te things it eats on a grid so you can collect them easier.
Take a look at my game and see what i mean