Enable viewing game stats after the game ends

Closes #6312.

This will probably clash a bit with #6391.
This is not `LEAVE_RESTART`, but `LEAVE_STATS` now. Maybe choose a more generic panel name.