void t_Tick(object sender, EventArgs e) { score.Text = this.player.GetScore().ToString(); if (!isStopped) { this.ball.move(); if (ball.IsOutOfGame()) { Program.FlipIsLost(); this.Close(); } this.ball.CheckCollide(progressBar1, player); if (ball.GetCurrent() == ball.GetDiff()) { this.Close(); } Invalidate(); } }