this took ages to work out how to get the ball to bounce in the correct direction, whatever the direction is, but I did it all myself. It does need neatening around the edges, but I've got the code for bouncing now!!