private void CheckCollisions() { if (Collider.CollisionTest(Snake)) { GameOver(); } if (Collider.CollisionTest(Food, Snake.SnakeSegments.First())) { GenerateFood(); Settings.Score++; Snake.AddNewSegment(Snake.SnakeSegments.Last().Position); //Timer.Interval = TimeSpan.FromMilliseconds(Snake.SnakeSpeed); } }