refactor player/jail/game