refactor monty hall