public void Clear_Level() { int level = mygame.game_level + 1; int game_height = mygame.game_height; int game_width = mygame.game_width; string sound = mygame.sound_control; MyGame_timer.Enabled = false; if (level > mygame.max_level) { level = 1; mygame.Finish_Game(); pictureBox1.Refresh(); mygame.game_status = "game_over"; } else { mygame.Clear_Level(); pictureBox1.Refresh(); mygame = new Game(game_height, game_width); mygame.game_status = "clear"; mygame.sound_control = sound; mygame.game_level = level; } }