readded game data structure
added helper functions