made foundLeftConnection method
made foundRightConnection method