Two squares are chosen at random on a chessboard (see figure). The probability that they have a side in common is:
\( \frac{2}{7} \)
\( \frac{1}{9} \)
\( \frac{1}{18} \)
\( \frac{1}{7} \)