def gm_move1(state, b1, b2):
    """
    If goal is ('pos',b1,b2), b1 is clear, we're holding nothing, and b2 is
    either the table or clear, then assert goals to get b1 and put it on b2.
    """
    if b2 != 'hand' and state.clear[b1] and state.holding['hand'] == False:
        if b2 == 'table' or state.clear[b2]:
            return [('pos', b1, 'hand'), ('pos', b1, b2)]