Rearrange IO code
Implement hiding part of game state as passed to chooseAction