Added class to detect collisions