Runs the Prisoners and Boxes problem