generalize monty hall to any number of doors