improved code quality + bad collision detection

more changes to be done today -
just a security savve
Merge branch 'Crowds' of https://github.com/Streamstormer/PanicSim into Crowds