Major fixes

(Finally) accurate game-end mechanism; results formatting and printing;
other fixes.