add functionality to get horizontal connections for each input letter