collision detection

added framework for collision detecting between more types of objects