modified collision detection

added new version of collision dection. works the same :/