private void timer1_Tick(object sender, System.EventArgs e) //runs one round of the game, when started { TheBall.UpdateBounds(); //gets the ball position Invalidate(TheBall.GetBounds()); //redraws the ball if (speed < 5) { TheBall.Move(); //moves the ball } else if (speed < 10) { TheBall.MoveFast(); } else if (speed < 15) { TheBall.MoveFaster(); } else { TheBall.MoveFastest(); } TheBall.UpdateBounds(); //updates position of the ball Invalidate(TheBall.GetBounds()); //redraws the boll CheckForCollision(); //checks for collision }