Introduced a new collision system

Made a new collision detection system. Work in progress.