Playing the perfect Kriegspiel endgame