added prisoners and switches problem