collisions changed to use pythagoras'