A simulation of the EPR experiment