Added a method to check if the cars have a collison