Check for isConnected(1,9)