public void Update(GameTime gameTime) { switch (gameState) { case GameState.Start: MusicPlayer(gameTime); break; case GameState.Playing: blockTimer -= (float)gameTime.ElapsedGameTime.TotalSeconds; if (blockTimer <= 0) { activeBlock.MoveDown(); ResetBlockTimer(); } if (activeBlock == null) { activeBlock = queuedBlock; NewBlock(); if (grid.CheckSpawn(activeBlock)) { GameOver(); } } MusicPlayer(gameTime); break; case GameState.GameMenu: MusicPlayer(gameTime); break; case GameState.GameOver: break; } }