Encapsulate framework details in class

This prevents the trivial "return prisoners[i]" solution.

Signed-off-by: Cyde Weys <cydeweys@gmail.com>