renamed GameState to gameState