made pause button switch states based on the actual gameState value rather than handlers