some work on dumping statistics, still todo and causes crash at game end