Now the intersection with rectangle works but its a bit iffy why it works. And i think the finalintersection is working but will check it out next time :)
Merge branch 'master' of github.com:emmaforsling/Monte-Carlo