Added collision detection to pipes.