allowed for different types of collisions. Added bounding box based collisions.