Collisions changed and KD-Trees implemented