from detect import MyBoard


def has_module(module_name):
    try:
        __import__(module_name)
        return True
    except ImportError:
        return False


def check_board(pingo_board):
    current = MyBoard()
    return isinstance(current, pingo_board)
