+collision detection with midpoints works!!!! :)

roll into matrix version!!