Walled maze solver written in c#