check y
if(ball.ypos > floor) { ball.ypos = floor; ball.vy *= bounce; }