added intersection checking
works for circle-circle, does not work for circle-rect and rect-rect