in all directions
else if(ball.y - ball.radius < 0) { ball.y = ball.radius; ball.vy *= bounce; } } } }