Finished the anti collision system. plus some minor refactoring.