The driver, who had his head pushed through the car’s sun roof during the accident, was taken to the hospital