def move_response(move):
    assert (move in ['up', 'down', 'left', 'right']), 'Move must be one of [up, down, left, right]'
    return bottle.HTTPResponse(status=200, headers={'Content-Type': 'application/json'}, body=json.dumps({'move': move}))
def move_response(move):
    assert (move in ['up', 'down', 'left', 'right']), 'Move must be one of [up, down, left, right]'
    return bottle.HTTPResponse(status=200, headers={'Content-Type': 'application/json'}, body=json.dumps({'move': move}))