First draft of simulation mode. No endgame yet.