private void Update(object sender, EventArgs graph) { Drawings.Reset(); if (!Drawings.Collide1()) { Drawings.shape.Down(); } else { Drawings.Share(); Drawings.Cut(label1, label2); timer1.Interval = Drawings.interval; Drawings.shape.ResetBoxes(3, 0); if (Drawings.Collide1()) { Drawings.Clear(); timer1.Tick -= new EventHandler(Update); timer1.Stop(); DialogResult result = MessageBox.Show($"Game Over \n Score: {Drawings.totScore} \n Do you want to play Again?" , "Game Over", MessageBoxButtons.YesNo); if (result == DialogResult.No) { Application.Exit(); } Records.SaveForHighScores(name); Initialize(); } } Drawings.Share(); Invalidate(); }