start

collision with apple?

+ 1 snake body

collision with non collidable object?

no

end