A simulation of the Monty Hall problem