private void playPressed(object sender, EventArgs args) { var chars = charSel.gatherChars(); if (chars.Length == 0) { MessageBox.Show(this, "No characters"); return; } if (Shop.shop.money < 0) { MessageBox.Show(this, "Negative money"); return; } Controls.Remove(control); game = new Game(chars); game.form = this; Controls.Add(new RenderPanel(game)); Refresh(); game.Start(); this.Invalidate(); this.Refresh(); }