Update C# code so that PALL-E handles obstacles correctly