Added multiball support
added intersection size calculation for rectangles