Print final board when game ends

The `raw-mode` branch introduced a bug in which the final board isn't printed when the game ends. This pull request fixes that.