Refactored Gamestate class to clarify member values.