snake tutorial, written in C#