Use foreach loop in obstacles on hit