added collision detection for ball and paddle