Change game data hash logick, some refactoring