using unordered_map for end-game hash