Make ball bounce within boundaries