fixed bad buggy code that detected the same colission multiple times