Add a logger, so we can trace the code with `tailf` during gameplay.
Fix scheduler and enable logging.