Iam an beginner and doing some C# exercises. I found out about Forest Fire Model and tried to do this with WPF and for drawing iam using canvas by creating a rectange for every pixel. The problem iam getting is that the Program freezes and canvas doesnt draw anything (with the while(true) loop). Also iam deleting all childrens after an iteration, still the program is collecting GBs of RAM.Iam an beginner and doing some C# exercises. I