Code featuring the Monty Hall problem