Detect collisions and switches to open gates