issue #16, written a function to test adjacent pipe connections, ready to implement search algorithm