These should be triple equals as well, that is:

    if (side === cellSide[0]) {