private void startGame() { //Decide whether the ball goes right or left at the start if ((ball.getX() > GameCanvas.Width / 2) && (!isStarted)) { ball.setXVector(ball.getXVector() * -1); } //set started to true and start timer isStarted = true; _timer.Start(); }