def is_valid_num(num):
    """
    Check if x or y falls on board.
    Parameters
    ----------
    num : str
        row or column value
    Returns
    -------
    bool
        true if its a valid number [0,4]
        false otherwise
    """
    return -1 < num < 5