added a methode to test intersection within the robot