toh: Remove endgame printing from event loop
toh: Optimise endgame checking for not endgame
toh: Record player and system time

Implements feature #2.
toh: Tabify source code
Merge branch 'wip/2'