def new_game(dim=8):
    """Generate a blank board.
    Input:
        dim : the number of squares in one row or column
    
    Output: a dim*dim list of 0s
    """
    return [[0 for i in range(dim)] for j in range(dim)]