def _check_if_position_on_board(coord: tuple, board_size: int):
    """
    checks whether coordinates are inside of board
    :param coord:
    :param board_size:
    :return:
    """
    in_row = coord[0] in range(board_size)
    in_col = coord[1] in range(board_size)
    return in_row and in_col