Update raytrace collision to use square_length method