segmenting out game states to separate files