Rewrote the collision system(again)

*Fixed all issues with collision and made it a lot more efficent.