programm to prove the 3 doors problem