cleaning un peu le code
intersection test aislated into a function
changed pass by value for pass by reference
removed commented code and added debug msgs
Added informative output msg
removed unused commented code