function computerMovement() { 
	//set paddle2 position to vertical middle
	var paddle2YCenter = paddle2Y + (PADDLE_HEIGHT/2); 
		
	//determine paddle2 vertical position relative to ball.
	//move paddle2 up or down by 6 pixels to hit the ball
	if(paddle2YCenter < ballY - 35) {
		paddle2Y = paddle2Y + 6;
	} else if(paddle2YCenter > ballY + 35) {
		paddle2Y = paddle2Y - 6;
	}
}
//right-side paddle2 played by computer
right-side paddle2 played by computer
right - side paddle2 played by computer
function computerMovement() { 
	var paddle2YCenter = paddle2Y + (PADDLE_HEIGHT/2); 
	if(paddle2YCenter < ballY - 35) {
		paddle2Y = paddle2Y + 6;
	} else if(paddle2YCenter > ballY + 35) {
		paddle2Y = paddle2Y - 6;
	}
}
function computerMovement ( ) { var paddle2YCenter = paddle2Y + ( PADDLE_HEIGHT / 2 ) ; if ( paddle2YCenter < ballY - 35 ) { paddle2Y = paddle2Y + 6 ; } else if ( paddle2YCenter > ballY + 35 ) { paddle2Y = paddle2Y - 6 ; } }
right-side paddle2 played by computer
right - side paddle2 played by computer
//set paddle2 position to vertical middle //determine paddle2 vertical position relative to ball. //move paddle2 up or down by 6 pixels to hit the ball