Added random ball generation when ball leaves left or right.