private void RunGameLogic() { // Move the player to the next stop player.Move(); // Update the tail player.ProcessTail(player.Position); // Erase any points that are old foreach (Point removePoint in player.RemoveNodes) { SetGlyph(removePoint.X, removePoint.Y, 0); } // Draw the new spot SetGlyph(player.Position.X, player.Position.Y, 1, Color.Black, Color.DarkSeaGreen); // Detect if we hit something if (CollisionDetection(player.Position)) { EndGame(); } // Detect if we hit the wafer if (player.Position.X == wafer.X && player.Position.Y == wafer.Y) { currentScore += 3; DrawScore(currentScore); player.MaxTailLength++; CreateRandomWaferLocation(); SetGlyph(wafer.X, wafer.Y, 249, Color.Black, Color.DarkSeaGreen); } }