Work on the actual jailing of the player.

Lots of work done here, untested.