def get_square_color(box, x, y, side):
    """Gets the color of the square with its top left corner at (x, y) and with the sides being a length of side
    Returns None if they are not all the same color or if side == 1"""

    colors = set()
    for i in range(side-1):
        for j in range(side-1):
            colors.add(box[x + i][y + j])
    if len(colors) == 1:
        return colors.pop()
    else:
        return None