def is_goal(state):
    """
    Returns True, if the given state is the goal state
    
    state: a list representing the state to be checked
    """
    goal_state = [[0], [1, 2, 3], [4, 5, 6], [7, 8, 9]]
    return state == goal_state