✅ Stackoverflow even though it should stop the recursive function - C#