Fix in back tracking recursion loop to check against a state being both a wall and also being marked