Collision detection between ball and bricks