Created Collision class

Created the collision class, which handles collisions.