Log game state to file.