def update(response, game, current):
    ' Process the input and update the state of the world '
    for e in game['rooms'][current]['exits']:
        if (response == e['verb']):
            current = e['target']
    return current
Process the input and update the state of the world
def update(response, game, current):
    '  '
    for e in game['rooms'][current]['exits']:
        if (response == e['verb']):
            current = e['target']
    return current