JS sim for the Hungarian Prisoners Problem