//Revisa los bloques restantes y finaliza el juego.
 private void CheckGame()
 {
     //Verificar que no hayan más bloques
     if (GameData.GameScore == 180)
     {
         //detener timer
         timer1.Stop();
         //Agregar puntaje
         ScoreDAO.AddScore(GameData.GameScore * GameData.Lives, player.nickname);
         MessageBox.Show("Felicidades ha completado el juego.",
                         "Arkanoid", MessageBoxButtons.OK);
         //Cambiar de menu
         ControlMenu menu = new ControlMenu();
         //Reiniciar valores de juego para permitir juego nuevo
         GameData.Lives       = 3;
         GameData.GameScore   = 0;
         GameData.GameStarted = false;
         //Cambiar de userControl
         ((frmGame)this.Parent).ShowControl(menu);
     }
 }
 //Revisa las vidas restantes del jugador y reposiciona los elementos.
 private void CheckLife()
 {
     //Verificar vidas de usuario
     if (GameData.Lives == 0)
     {
         MessageBox.Show("Juego terminado.",
                         "Arkanoid", MessageBoxButtons.OK);
         //Reiniciar datos para permitir juego nuevo
         ControlMenu menu = new ControlMenu();
         GameData.Lives       = 3;
         GameData.GameScore   = 0;
         GameData.GameStarted = false;
         //cambiar de userControl
         ((frmGame)this.Parent).ShowControl(menu);
     }
     else
     {
         //Reiniciar posición de bola
         cpbPlayer.Top = Height - cpbPlayer.Height - 80; cpbPlayer.Left = (Width / 2) - (cpbPlayer.Width / 2);
         ball.Top      = cpbPlayer.Top - ball.Height;
         ball.Left     = cpbPlayer.Left + cpbPlayer.Width / 2 - ball.Width / 2;
         ball.BringToFront();
     }
 }
        private void btnReturn_Click(object sender, EventArgs e)
        {
            ControlMenu menu = new ControlMenu();

            ((frmGame)this.Parent).ShowControl(menu);
        }