Adding the collision detection process. Not ready yet